Using hillshade layer in the map styler or in the map

I want to know how can i add the hillshade layer in the map styler with the default monochrom layer with the map?
how can i use the 2/hillshade_dem from the Map Styles | Map Display API | TomTom Developer Portal … thank you

Hi,
Thank you for your interest in the Hill Shade API.
You can combine any map or traffic layers following this generic merged url:
https://{baseURL}/style/{versionNumber}/style/{resourceVersion}?key={Your_API_Key}&map={map_style}&traffic_incidents={traffic_incident_style}&traffic_flow={traffic_flow_style}&poi={poi_style}&restrictions={restrictions_style}&hillshade={hillshade_style}

in your case the map style = 2/basic_mono-light and the hillshade style = 2/hillshade_dem-mono-light

The url combining those 2 layers would be:
https://api.tomtom.com/style/1/style/24.2.2-3?key=Your_API_Key&map=2/basic_mono-light&hillshade=2/hillshade_dem-mono-light

Now head to the Map Styler, select “Open” option in the header. Enter this url (please remember to enter your own API KEY) and hit “Open url” button.

More info about merging styles can be found on the Map Styles v2 page. There, you can also find available styles.

Hope it helps,
Dominika

1 Like