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


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

You can also take a look at one of our examples:,map,pan-and-zoom.html, which shows how to add more ‘fancy’ zoom control to the map.


1 Like

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

Great to hear (read :wink: ) !

You are welcome :slight_smile: