Whatever message this page gives is out now! Go check it out!

ColdFusion.Map.setZoomlevel

Last update:
May 18, 2026

Description

Sets the zoom level of the map to the new value.

Function syntax

ColdFusion.Map.setZoomlevel("name", zoomLevelValue)

See also

History

ColdFusion 9: Added this function

Parameters

Parameter
Description
name
Specifies the value of the name attribute of the cfmap tag.
zoomLevelValue
The value of the integer in the zoomlevel attribute of the cfmap tag.

Returns

This function does not return any value.

Example

<h3>This is an example of the Map.setzoomlevel function. Click the Set Zoom Level button to set the zoom level to 6.</h3> 
 <script> 
 function setZoom(zoomlevel) 
 { 
 ColdFusion.Map.setZoomLevel('mapID', zoomlevel); 
 } 
 </script> 
 <h3>MAP 1</h3> 
 <cfform name="map01"> 
 <cfinput type="button" value="Set Zoom Level" name="buttn04" 
 onclick="javascript:setZoom(6)"> 
 </cfform> 
 <cfmap name="mapID" 
 centerlatitude=42.094224 
 centerlongitude=72.339641 
 displayscale=true 
 doubleclickzoom="true" 
 overview=true 
 scrollwheelzoom=true 
 tips="My Map" 
 zoomlevel="4" > 
 </cfmap>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page