The contents of the “sdk” folder should look like this:
There are several directories and files, but we are only interested in the following ones: npm install && npm start
After a while, you should see text similar to the one in this picture:
If you would like to know more about running offline examples, you may take a look at one of our tutorials: Running examples locally
Now, in a popup window, select the “Upload” button.
For this particular tutorial, we will edit the “basic_main.json” style. You may find it in the “styles” directory described in the”Extract the examples” step.
Next, replace “{key}” placeholder in each of the tile URLs with your API key.
Close the overlay to apply the changes by clicking on X in the top right corner.
In a popup window, replace “Sprite URL” with http://localhost:8080/sdk/sprites/sprite
and “Glyphs URL” with http://localhost:8080/sdk/glyphs/{fontstack}/{range}.pbf
Close the overlay to apply the changes by clicking on X in the top right corner.
From “Paint properties”, select “Color”.
Set a color of your choice. After this operation, oceans should be filled with a chosen color.
In a popup window, choose the “Download” button.
Your new style should be available on your computer. Rename to gangdam.json ;) :)
Above steps allow you configure a default TomTom style for edition in Maputnik. If you are interested in the topic of vector tiles or the style customization, please find the following list of suggested further readings: