/
Lock the Zoom level on a Lite map

Lock the Zoom level on a Lite map

Problem

Is there a way to lock the window on a Lite map so a user cannot zoom in or out?

Solution

This can be achieved by creating a copy of the appropriate Base map in Studio and setting the Scales so that it only includes the single scale that you’d like to display the map at and then hiding the Zoom buttons.

Step-by-step guide

  • Create a copy of the Base map you wish to use for your Lite map.
  • Set the Scales under the BaseMaps > Details so that it only includes the single scale that you would like the map to be displayed at.
  • Add the BaseMap to the MapSource that you are using for your Lite Map.
  • Add the following CSS to your web page to hide the Zoom buttons.
			/* Hide the zoom controls for this map */
			#atZoomControls {
				display: none;
			}


Related content

Interacting with the Map
Interacting with the Map
More like this
BaseMaps Startup
BaseMaps Startup
More like this
My Maps
More like this
Specify map Zoom when a user performs a Find Address in iShare GIS
Specify map Zoom when a user performs a Find Address in iShare GIS
More like this
iShare Lite Map Example Code - pre v5.4.0
iShare Lite Map Example Code - pre v5.4.0
More like this
How to create your iShare Lite Map - from v5.4.0
How to create your iShare Lite Map - from v5.4.0
More like this