https://github.com/indus/-vt-optimizer_issue13
https://github.com/indus/-vt-optimizer_issue13
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/indus/-vt-optimizer_issue13
- Owner: indus
- Created: 2022-02-02T10:14:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-02T10:36:06.000Z (over 4 years ago)
- Last Synced: 2025-01-30T08:31:14.354Z (over 1 year ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
https://github.com/ibesora/vt-optimizer/issues/13
## Test 1 ([style_circle1.json](https://github.com/indus/-vt-optimizer_issue13/blob/main/style_circle1.json)) :heavy_check_mark:
`node ../index.js -m munich.mbtiles -s style_circle1.json -o munich_opt_style_circle1.mbtiles`
```
Process results
• Removed 1 features in level 2
• Removed 1 features in level 3
• Removed 1 features in level 4
• Removed layer munich from zoom levels 2, 3, 4
```
## Test 2 ([style_circle2.json](https://github.com/indus/-vt-optimizer_issue13/blob/main/style_circle2.json)) :heavy_check_mark:
`node ../index.js -m munich.mbtiles -s style_circle2.json -o munich_opt_style_circle2.mbtiles`
```
• Removed 1 features in level 0
• Removed 1 features in level 1
• Removed layer munich from zoom levels 0, 1
```
## Test 3 ([style.json](https://github.com/indus/-vt-optimizer_issue13/blob/main/style.json)) :x:
`node ../index.js -m munich.mbtiles -s style.json -o munich_opt_style.mbtiles`
```
Process results
• Removed 1 features in level 0
• Removed 1 features in level 1
• Removed layer munich from zoom levels 0, 1
```
Shouldn't remove anything because the layer gets used in all zoom levels.
It looks like the [last usage of the layer](https://github.com/indus/-vt-optimizer_issue13/blob/main/style.json#L23-L33) overwrites [previous usages](https://github.com/indus/-vt-optimizer_issue13/blob/main/style.json#L11-L22)