I'm trying to apply my custom map style to an evaluation version of OpenMapTile server
(klokantech/openmaptiles-server) on Linux which is running in Docker.
I used the online version of Maputnik
to edit the map in OSM-Bright style
. Then I downloaded the modified JSON but I'm not sure how to apply this custom style to the my OpenMapTile server
.
I logged into the Linux
in Docker container
and found the corresponding style.json
file, but my changes applied will be lost whenver the container is restarted. Could anyone tell what am I missing?
In the Google Cloud Console, go to the Map Styles page. Select the style you want, and click Customize Style.
Maputnik is a free and open source visual editor for the Mapbox GL style specification. You can either use the online version of Maputnik at https://maputnik.github.io/editor or download the editor to use it locally.
In the /data/config.json file add your json file:
{
"styles": {
"standard": [
"dark-matter",
"klokantech-basic",
"osm-bright",
"positron"
],
"custom": [
"style.json",
....
And place that file in /data/styles. You need to restart the container after
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With