Hide map navigation controls
This tutorial shows how to hide the navigation control (zoom and rotation controls to the map).
By default the navigation control is activated and added to the map.
Copy the following code, paste it into your favorite text editor, and save it as a
YOUR_MAPTILER_API_KEY_HEREwith your actual MapTiler API key.
The next it’s up to you. You can start the map in a different place by modifying the
starting zoom, and you can change the look of the map to any of our styles, or yours, by updating the
style. See what’s available here.
Install the npm package.
Include the CSS file.
If you have a bundler that can handle CSS, you can
importthe CSS or include it with a
<link>in the head of the document via the CDN
To hide the control and remove it from the map, all you have to do is indicate it in the map builder options.