Replies: 2 comments
-
|
Hello! Currently the only way to customize the generated openmaptiles tiles is to fork https://github.com/openmaptiles/planetiler-openmaptiles and make changes there. You can also use yaml schemas to create a separate pmtiles file. I have a Google Summer of Code project proposal out for this summer that would address this issue and let you combine multiple profiles into a single output pmtiles (as well as filter the generated pmtiles file to just what your maplibre style needs) so hopefully this will be possible in the near future. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your quick reply @msbarry !
I opened file /openmaptiles/layers/Transportation.java Please tell me in a few words if these are the places where I need to update the code, for example to change the min_zoom for paths, instead of 13 to be 12 (I will understand the logic behind the java code as in the past I was a web developer html-php-mysql) I just want to know that I make the modifications in the correct places. I should get the files in layers folder one by one and adjust each min_zoom setting for all the elements I want to have different values, and if I don't find that specific element in the files I see in the layers folder, I should add it in the /org/openmaptiles/addons/ExtraLayers.java ? For example I opened all 3 files related to "water" and I could not find any mention regarding spring , this means springs are not defined in this default schema? so I will need to add these elements in the ExtraLayers.java ? Thank you again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'm new to OSM, 2 months ago I started to build an iOS/Android app and very fast I understood I can't use an tile server like mapTiler because of the free tier limits, so I got an 64Gb +1TB NVME workstation to use it as a full PLANET tile server.
I installed the needed software, I run Martin, NGIX + CloudFlare tunnel and I was able to generate the pmtiles from a osm.pbf file I downloaded from geofabrik. To make things easy in the beginning I only downloaded Romania pbf, and build my tiles using this script:
than I started styling my maps, element by element, after a few days I noticed there are some elements that are not available in my pmtiles ( natural: [spring], man_made: [tower, mast, antenna], waterway: [waterfall] )
In the last few evening I tried to generate the tiles with the missing elements and also I needed to change the min-zoom value for some elements like paths, trails and also to some POIs.
I tried multiple ways, here are a few scripts I used but I wasn't able to add the springs in my map :(
Can anyone guide me to the correct path to be able to generate pmtiles with all the missing elements?
I don't know if the correct way is to generate a set of pmtiles with the default schema, and than to generate the missing tiles in a separate pmtiles file, I think it would be better to have only one CORRECT set of tiles.
Is there a way to create a new COMPLETE schema and to use it as a parameter? (I have tried passing parameters to planetiler.jar with a different yml schema but it didn't do what I expected, the number of elements in the tiles has increased but my springs, communication towers , etc did not appear in the map, and I use MapLibre to style these elements, if the elements ware in my tiles for sure they should have been displayed)
I never build any java code, and not really sure where is the schema that planetiler.jar is using by default, is it this one ? https://github.com/openmaptiles/planetiler-openmaptiles/blob/main/src/main/java/org/openmaptiles/generated/OpenMapTilesSchema.java
Thank you for any advices !
PS. Bellow I post a few screenshots, and also explain why I need to modify the min zoom on some elements
This one is at Z 12.99

And the one bellow is at Zoom level 13. I know the rivers/streams seem to thick but that can be easily style out, the problem is I need these and also all the trails visible even in zoom 12, I will style them to be less visible, but I need them in my tiles at z12.
So can these settings be changed when I run planetile.jar ?
Beta Was this translation helpful? Give feedback.
All reactions