Add ParksOverlay example profile with MapLibre style#1514
Add ParksOverlay example profile with MapLibre style#1514permission-error1 wants to merge 3 commits intoonthegomap:mainfrom
Conversation
Full logs: https://github.com/onthegomap/planetiler/actions/runs/23128446480 |
|
|
@msbarry, Can I add the For SonarCloud analysis fail, the duplication warning is from boilerplate that all the other examples share too (imports, attribution, run/main). Not sure how to reduce it without making the code inconsistent with the rest of the examples. |
msbarry
left a comment
There was a problem hiding this comment.
Minor comments but otherwise looks great, thanks!
|
|
||
| parks-map.html | ||
| parks-style.json No newline at end of file |
There was a problem hiding this comment.
Can we revert these 2 lilnes? I usually put temp files like this in data/ directory
| assertEquals("Parks Overlay", metadata.get("name")); | ||
| assertContains("openstreetmap.org/copyright", metadata.get("attribution")); | ||
|
|
||
| TestUtils.assertTileDuplicates(mbtiles, 0); |
There was a problem hiding this comment.
Could you add one call to TestUtils.assertNumFeatures here to verify the output actually contains a park polygon?


This PR adds a small Planetiler example profile that extracts
parks and gardens from OpenStreetMap using the tags:
leisure=park
leisure=garden
The example includes:
Screenshot:
