How to add a zoom control to a map?

Is it possible to add a zoom control to a map - like in Google maps?
Many thanks

Hi.

Try to add it by using below code:
map.addControl(new tt.NavigationControl(), 'top-left');
It will add a control which looks like this:
image

You can also take a look at one of our examples: https://developer.tomtom.com/maps-sdk-web-js/functional-examples#examples,map,pan-and-zoom.html, which shows how to add more ‘fancy’ zoom control to the map.

Regards,
Mateusz

1 Like

That’s brilliant - thanks for your help :grinning:

Great to hear (read :wink: ) !

You are welcome :slight_smile: