Skip to content

Commit a412fdb

Browse files
committed
chore: merge from master
2 parents 9d08041 + ca1d103 commit a412fdb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+3981
-241
lines changed

.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
PORT=23101
2+
CACHE_SIZE=10000
3+
CACHE_EXPIRE=240000
4+
NODE_TLS_REJECT_UNAUTHORIZED='0'
5+
PG_POOL_SIZE=60

CHANGELOG.md

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,176 @@
1+
## [4.17.2](https://github.com/Greenstand/node-mapnik-1/compare/v4.17.1...v4.17.2) (2021-05-06)
2+
3+
4+
### Bug Fixes
5+
6+
* expand db pool to 20 ([8963d1c](https://github.com/Greenstand/node-mapnik-1/commit/8963d1c01ac91bd1ad52f96298704acbe910410c))
7+
8+
## [4.17.1](https://github.com/Greenstand/node-mapnik-1/compare/v4.17.0...v4.17.1) (2021-05-06)
9+
10+
11+
### Bug Fixes
12+
13+
* wrong settings ([bcc072b](https://github.com/Greenstand/node-mapnik-1/commit/bcc072bc0141913f0ed06a790c4015f1c08ebc70))
14+
15+
# [4.17.0](https://github.com/Greenstand/node-mapnik-1/compare/v4.16.1...v4.17.0) (2021-05-06)
16+
17+
18+
### Features
19+
20+
* use new database for test env ([48c8590](https://github.com/Greenstand/node-mapnik-1/commit/48c8590ad2e1aa98f38ef00ab4830bc809d06421))
21+
22+
## [4.16.1](https://github.com/Greenstand/node-mapnik-1/compare/v4.16.0...v4.16.1) (2021-05-06)
23+
24+
25+
### Bug Fixes
26+
27+
* merge from master ([37d638a](https://github.com/Greenstand/node-mapnik-1/commit/37d638a4d7ca93f79bd2e37e4be9ce4975b51d28))
28+
* to fail the db ([9142c77](https://github.com/Greenstand/node-mapnik-1/commit/9142c7717f5439e978dd73574cffe7f4165fa800))
29+
30+
# [4.16.0](https://github.com/Greenstand/node-mapnik-1/compare/v4.15.0...v4.16.0) (2021-05-06)
31+
32+
33+
### Features
34+
35+
* try new test db ([2412df6](https://github.com/Greenstand/node-mapnik-1/commit/2412df670ccf2e583278d233b74e8efd562699cf))
36+
37+
# [4.15.0](https://github.com/Greenstand/node-mapnik-1/compare/v4.14.1...v4.15.0) (2021-05-05)
38+
39+
40+
### Features
41+
42+
* be able check version online ([e4d7bf5](https://github.com/Greenstand/node-mapnik-1/commit/e4d7bf5bc89fc89751177ce681cfccb2e499af02))
43+
44+
## [4.14.1](https://github.com/Greenstand/node-mapnik-1/compare/v4.14.0...v4.14.1) (2021-05-05)
45+
46+
47+
### Bug Fixes
48+
49+
* wrong setting ([a63517f](https://github.com/Greenstand/node-mapnik-1/commit/a63517f7218b002577628307b7a4b1de3e57f3d1))
50+
51+
# [4.14.0](https://github.com/Greenstand/node-mapnik-1/compare/v4.13.0...v4.14.0) (2021-05-05)
52+
53+
54+
### Bug Fixes
55+
56+
* change back to calculate zoom target at zoom level range: 0-9; ([ca1577a](https://github.com/Greenstand/node-mapnik-1/commit/ca1577a7a14fd0d1b3592e325cec1321a2d4e240))
57+
58+
59+
### Features
60+
61+
* add env var for pool size in development settings ([1b8e935](https://github.com/Greenstand/node-mapnik-1/commit/1b8e935f5f7c01fb4c5cc3f340e4b49469f8a9d5))
62+
* can use geojson for tree points; ([ec1284b](https://github.com/Greenstand/node-mapnik-1/commit/ec1284b659c251dc5ee1b681347a0cd4348f38c8))
63+
* let wallet/org/userid map use global data set ([5565d9c](https://github.com/Greenstand/node-mapnik-1/commit/5565d9c085384e97b8f84d009e75d4fd652cf7e1))
64+
65+
# [4.13.0](https://github.com/Greenstand/node-mapnik-1/compare/v4.12.2...v4.13.0) (2021-05-04)
66+
67+
68+
### Features
69+
70+
* add env var for max pool size ([ee868b8](https://github.com/Greenstand/node-mapnik-1/commit/ee868b8b77e2adc044e933d4d8b73cecfa8e0088))
71+
* can use PGPool render all cluster, with bounds ([6c3e4f5](https://github.com/Greenstand/node-mapnik-1/commit/6c3e4f591e09cbc5681ebc4e2e5b3beff1dd3109))
72+
* pool is working ([e5f9763](https://github.com/Greenstand/node-mapnik-1/commit/e5f9763c77f837f14892cc35715a79986543911a))
73+
* refactor config with pool param ([30d4bac](https://github.com/Greenstand/node-mapnik-1/commit/30d4bacffa3069612cc72445a459e0eeabbe26cf))
74+
75+
## [4.12.2](https://github.com/Greenstand/node-mapnik-1/compare/v4.12.1...v4.12.2) (2021-05-03)
76+
77+
78+
### Bug Fixes
79+
80+
* bug in PGPool ([cd4067c](https://github.com/Greenstand/node-mapnik-1/commit/cd4067caf4a19d4678a286446a33d4a691b1706b))
81+
82+
## [4.12.1](https://github.com/Greenstand/node-mapnik-1/compare/v4.12.0...v4.12.1) (2021-05-02)
83+
84+
85+
### Bug Fixes
86+
87+
* update database connection string to use no-verify ([60b1e66](https://github.com/Greenstand/node-mapnik-1/commit/60b1e6668933aa9d3ddffb2873fdcc6224db5551))
88+
89+
# [4.12.0](https://github.com/Greenstand/node-mapnik-1/compare/v4.11.0...v4.12.0) (2021-04-30)
90+
91+
92+
### Features
93+
94+
* neast version ([99c05f3](https://github.com/Greenstand/node-mapnik-1/commit/99c05f3666c42da130d1854c800ed798504856f5))
95+
96+
# [4.11.0](https://github.com/Greenstand/node-mapnik-1/compare/v4.10.2...v4.11.0) (2021-04-30)
97+
98+
99+
### Features
100+
101+
* add dotenv ([e8828ce](https://github.com/Greenstand/node-mapnik-1/commit/e8828ce5151b9291e8ea1732cb7484bb20219195))
102+
* add LRU ([db45e88](https://github.com/Greenstand/node-mapnik-1/commit/db45e88119d05aa1790f537f60aee54a501ca801))
103+
* can compose the geojson by result got from DB ([66fa47f](https://github.com/Greenstand/node-mapnik-1/commit/66fa47f84f1d57b7bbe6d226624cd3d8a7deb7dd))
104+
* can render all layers; now is caching xml config string ([27026e2](https://github.com/Greenstand/node-mapnik-1/commit/27026e2ace9bf4a3572989fc1254fc49fc27ebd2))
105+
* can render by json, just restore the previous way to render it by load xml, and inline json data ([8326783](https://github.com/Greenstand/node-mapnik-1/commit/8326783c3b42425d0d40063cb6e15521ce321bc6))
106+
* can render png on zoom level 2 ([6bfa46e](https://github.com/Greenstand/node-mapnik-1/commit/6bfa46e826a21504236bf699ac64157a8c9e6602))
107+
* pgPool; can render png, json ([ff109d9](https://github.com/Greenstand/node-mapnik-1/commit/ff109d9f530ec3301cbc9577cec3113a42065710))
108+
109+
## [4.10.2](https://github.com/Greenstand/node-mapnik-1/compare/v4.10.1...v4.10.2) (2021-04-28)
110+
111+
112+
### Bug Fixes
113+
114+
* scale test env to 4 replicas ([52304d2](https://github.com/Greenstand/node-mapnik-1/commit/52304d26bfbc183adcadfe362100c896f340b928))
115+
* scale test env to 4 replicas ([d82dd60](https://github.com/Greenstand/node-mapnik-1/commit/d82dd608caca32fa464f11857d340c7835c99f89))
116+
* update mapping to remove timeout for prod ([02926e8](https://github.com/Greenstand/node-mapnik-1/commit/02926e8e52d8b67c457e8f27ec960ec8f552f1ec))
117+
118+
## [4.10.1](https://github.com/Greenstand/node-mapnik-1/compare/v4.10.0...v4.10.1) (2021-04-26)
119+
120+
121+
### Bug Fixes
122+
123+
* change port back to 3000 ([e89f5b9](https://github.com/Greenstand/node-mapnik-1/commit/e89f5b9fcf46b7989345e8976c09b1c7b7a6d092))
124+
125+
# [4.10.0](https://github.com/Greenstand/node-mapnik-1/compare/v4.9.1...v4.10.0) (2021-04-24)
126+
127+
128+
### Bug Fixes
129+
130+
* clip ([7e33b9a](https://github.com/Greenstand/node-mapnik-1/commit/7e33b9ac35912091938c61622400c247781f2239))
131+
* edit sql with bounds which considers buffer ([cd6274c](https://github.com/Greenstand/node-mapnik-1/commit/cd6274c6a16df1a16895253cd888a28130f99fba))
132+
* typo ([e00a91d](https://github.com/Greenstand/node-mapnik-1/commit/e00a91d69ff94f4ac37f0e2dcea85d28ad6e3168))
133+
* wrong image icon path ([fab424a](https://github.com/Greenstand/node-mapnik-1/commit/fab424ac4a494ace7356997b2f98ed965e33b1d4))
134+
135+
136+
### Features
137+
138+
* add bounds to sql ([f1db6ee](https://github.com/Greenstand/node-mapnik-1/commit/f1db6ee888987542009c4d7682095e7d6d955d6c))
139+
140+
## [4.9.1](https://github.com/Greenstand/node-mapnik-1/compare/v4.9.0...v4.9.1) (2021-04-18)
141+
142+
143+
### Bug Fixes
144+
145+
* force release ([581bbea](https://github.com/Greenstand/node-mapnik-1/commit/581bbea12e93431af614196a6f50514c8605d129))
146+
147+
# [4.9.0](https://github.com/Greenstand/node-mapnik-1/compare/v4.8.10...v4.9.0) (2021-04-16)
148+
149+
150+
### Bug Fixes
151+
152+
* break on wallet tree layer ([7a44b21](https://github.com/Greenstand/node-mapnik-1/commit/7a44b21adaf63c2de0785770246eb5663a78e650))
153+
154+
155+
### Features
156+
157+
* basic xml config ([e446599](https://github.com/Greenstand/node-mapnik-1/commit/e44659917a9444ec4f7c341052f5e44d86da2680))
158+
* building xmlString move to config.js ([cde0ea1](https://github.com/Greenstand/node-mapnik-1/commit/cde0ea1708eb37244e93f957eb576ca56bddac46))
159+
* can add zoom target ([3cd3e08](https://github.com/Greenstand/node-mapnik-1/commit/3cd3e089fbebce27dbafd175313a2dbbf10cdc99))
160+
* can display all level for normal map ([22cae28](https://github.com/Greenstand/node-mapnik-1/commit/22cae288b0f3b87151603138e8e241c917a580f4))
161+
* can format number with 'K', can display bigger circle ([2d76fc1](https://github.com/Greenstand/node-mapnik-1/commit/2d76fc18a81b6223465de2c0a4f05ab41cf58976))
162+
* can load setting by map/sql model ([1b71d29](https://github.com/Greenstand/node-mapnik-1/commit/1b71d29ee6d99ddc2bcb3aa237bee2f91766a519))
163+
* can read config from string ([ccc5447](https://github.com/Greenstand/node-mapnik-1/commit/ccc5447d14bc67bf5543e6ae8c4a8aa0b6a416b3))
164+
* can render cluster ([dc9c2fb](https://github.com/Greenstand/node-mapnik-1/commit/dc9c2fbd9ec047c65b1ae48824c93455a8a2e9cc))
165+
* can render number on cluster icon ([5f9629c](https://github.com/Greenstand/node-mapnik-1/commit/5f9629cd75e72c646d2a73b40419ea667959a265))
166+
* can render org tile ([96ac2b2](https://github.com/Greenstand/node-mapnik-1/commit/96ac2b2f81f96f6013abdeb81e512448280c6af9))
167+
* can return zoom_to ([ef5fa24](https://github.com/Greenstand/node-mapnik-1/commit/ef5fa24988768c0f3ccc85158207cacf6cbfcb94))
168+
* font improvment; ([3224a87](https://github.com/Greenstand/node-mapnik-1/commit/3224a87fe29176dd149b795c273af36562badafb))
169+
* font test passed ([aa6fc31](https://github.com/Greenstand/node-mapnik-1/commit/aa6fc31a2ab9bc77a4af67d657b5c15d8c346222))
170+
* now can display tree point with correct icon ([0fbcc5d](https://github.com/Greenstand/node-mapnik-1/commit/0fbcc5dd1f97638c6006c06da739600ff12df878))
171+
* use shieldsymbol to display icon; ([a9cac85](https://github.com/Greenstand/node-mapnik-1/commit/a9cac85317e5c3da65ee4cb15a7e9fac3631b5f6))
172+
* zoom target support org map ([86fcb45](https://github.com/Greenstand/node-mapnik-1/commit/86fcb45c40df5f518053cabd30d7bb7e25d2fba9))
173+
1174
## [4.8.10](https://github.com/Greenstand/node-mapnik-1/compare/v4.8.9...v4.8.10) (2021-04-01)
2175

3176

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# node-mapnik
22

33
Bindings to [Mapnik](http://mapnik.org) for [node](http://nodejs.org).
4-
4+
55
[![NPM](https://nodei.co/npm/mapnik.png?downloads=true&downloadRank=true)](https://nodei.co/npm/mapnik/)
66

77
[![Build Status](https://secure.travis-ci.org/mapnik/node-mapnik.png)](https://travis-ci.org/mapnik/node-mapnik)

deployment/base/deployment.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ spec:
2020
ports:
2121
- containerPort: 80
2222
env:
23+
- name: PORT
24+
value: "3000"
25+
- name: PG_POOL_SIZE
26+
value: "20"
27+
- name: CACHE_SIZE
28+
value: "10000"
29+
- name: CACHE_EXPIRE
30+
value: "240000"
31+
- name: NODE_TLS_REJECT_UNAUTHORIZED
32+
value: "0"
2333
- name: DB_URL
2434
valueFrom:
2535
secretKeyRef:

deployment/base/mapping.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ spec:
66
prefix: /tiles/
77
service: treetracker-tile-server
88
rewrite: /
9+
timeout_ms: 60000

deployment/overlays/production/mapping.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: Mapping
33
metadata:
44
name: treetracker-tile-server
55
spec:
6+
timeout_ms: 0
67
cors:
78
origins:
89
- https://prod-k8s.treetracker.org

deployment/overlays/test/database-connection-sealed-secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
namespace: tile-server
77
spec:
88
encryptedData:
9-
db: AgAUqugu+tJkvVgvTRL/AcXKv62rGuUrfI4fi5yCtM0wsPdLndZLTQrg3iFRadp/EHMAi4sl/rVHL/GnRNQaxnaTvLaI/vlKop+fjtozbGh2CneLPxBWU6SKtRBujFEQPn1Gn7xu0oVMA7jGv0uVbcInCbD6LF4hcPZX/gTKcoPiaX6XDfPlaWJekmmLd2gBEww/Oh4l8lnvi296v8eBU+bRyavOP9sf7/PdSD2svbQ2sSUgnXm9+H3Fvm+JoGsqfXNplQIioIdk4ddIif+E/gjQzqLvj2IPmUE49qd3BZd4Zh8aeV3vCOhIx0ngfkm0chr89QZT92bfiY7F8wgAOPX2CgPFX+KSeTNOmbYmyfRy0z0Qt+Ty/LqXAvFhpxF9yQjQv1y3kfAss2NnyVQe79Jo0f5TJdtaBYrt5pHGbdOlU5Go0j7xecqPLin+93spImqHsA9YdnuTzDRk7EcsAqMtlrEyJWdeIydnus9naG9ln2z9zKl/I52wHI+l9aV6F3xgRbUFmVtVk60wkK7z64eFMUoAAKu3zIilfQ3ECEZxOcIpdtHyB3Fmodv7Dw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32wNLhiVxVOgwed2Q9x02keg9VxfUjm6vyn3EPpSklDSBaILTGirIM6wrU54Ydaj/BO2zUapWX7QlLTrF5IaKSaINOrlGGFVvzisqnI5YFm+HSvKkJjI2Zs74umKWSilw=
1010
template:
1111
metadata:
1212
creationTimestamp: null
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: treetracker-tile-server
5+
labels:
6+
app: treetracker-tile-server
7+
spec:
8+
replicas: 4

deployment/overlays/test/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ bases:
33
patchesStrategicMerge:
44
- mapping.yaml
55
- database-connection-sealed-secret.yaml
6+
- deployment.yaml

0 commit comments

Comments
 (0)