Created
February 19, 2011 18:56
-
-
Save andreacfm/835275 to your computer and use it in GitHub Desktop.
street view example bases on ray camden post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function init() { | |
ColdFusion.Map.addEvent("mainMap","click",function(overlay,overlaylnglt) { | |
address = arguments[arguments.length-1]; | |
var loc = new GLatLng(address.lat(),address.lng()); | |
panoramaOptions = { latlng:loc }; | |
var myPano = new GStreetviewPanorama(document.getElementById("streetDiv"), panoramaOptions); | |
}); | |
} | |
</script> | |
<cfmap centeraddress="Milano Italy" zoomlevel="15" name="mainMap"/> | |
<div id="streetDiv" style="width:500px;height:500px"></div> | |
<cfset ajaxOnLoad("init")> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment