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

ColdFusion.Map.refresh

Last update:
May 18, 2026

Description

Reloads the map.

Function syntax

ColdFusion.Map.refresh (Id)

Parameters

  • Id: Name of the map.

Usage

If the map is embedded within spry collapsible panels or divs that are hidden on display, that is the map container is displayed while the actual map is hidden, use this function to force the map to display.

Example

<script type="text/javascript" src="/CFIDE/scripts/ajax/spry/includes_minified/SpryCollapsiblePanel.js" ></script> 

<link type="text/css" href="/CFIDE/scripts/ajax/spry/widgets/collapsiblepanel/SpryCollapsiblePanel.css" rel="stylesheet"> 

<div id="cp" class="CollapsiblePanel" style="width:500px;"> 
 <div class="CollapsiblePanelTab" tabindex="0">SHOW MAP</div> 
 <div class="CollapsiblePanelContent"> 
 <cfmap 
 width="500" 
 height="200" 
 zoomlevel="12" 
 name="mainMap" 
 markercolor="333444" 
 showscale="false" 
 typecontrol="none" 
 showcentermarker="true" 
 centeraddress="The Key Learning centre, Oxford, UK" 
 > 
 </cfmap> 
 </div> 

</div> 

<script type="text/javascript"> 
 var myTabClick = function() 
 { 
 !cpanel.isOpen() ? cpanel.open() : cpanel.close(); 
 cpanel.focus(); 
 ColdFusion.Map.refresh('mainMap'); 
 } 
 var cpanel = new Spry.Widget.CollapsiblePanel("cp", {contentIsOpen:false}); 
 cpanel.onTabClick = myTabClick; 

</script>

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