Whatever message this page gives is out now! Go check it out!
ColdFusion.Map.addEvent(name, event, listener, scopeObject) |
Parameter | Description |
name | Name of the map. |
event | The event to handle, for example click, dblclick, singleRightClick and mapTypeChange. For more events, refer to the Events section in the Google Maps API Reference documentation. |
listener | The function that is called when the event is fired. |
scopeObject | A JavaScript object that is set in the this scope. |
<h3>This is an example of the Map.addmarker function. Click the HTML button labeled "Add marker" to set the marker to the specified Address.</h3>
<script>
var markerObj={
address: '201 S. Division St. Suite 500 Ann Arbor, MI 48104'
};
function addmarker(){
ColdFusion.Map.addMarker('mapID', markerObj);
}
</script>
<h3>MAP 1</h3>
<cfform name="map01">
<cfinput type="button" value="Add marker" name="markerbutton"
onclick="javascript:addmarker();">
</cfform>
<cfmap name="mapID"
centerlatitude=42.261
centerlongitude=-87.717
displayscale=true
doubleclickzoom="true"
overview=true
scrollwheelzoom=true
tips="My Map" zoomlevel="4">
</cfmap>