Google maps

Aus Vosp.info
Wechseln zu:Navigation, Suche


Google Maps 2

<h1>Google Map 2</h1>

<p>
	minLongitude: {minLongitude} <br /> 
	midLongitude: {midLongitude} <br /> 
	maxLongitude: {maxLongitude} <br /> 
	minLatitude: {minLatitude} <br /> 
	midLatitude: {midLatitude} <br /> 
	maxLatitude: {maxLatitude}
</p>


<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key="
  type="text/javascript"></script>
<script type="text/javascript">


function ncLoadGmaps() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
		map.setCenter(new GLatLng( {midLatitude} , {midLongitude} ), 10);
		
		<f:for each="{ancvendorids}" as="ancvendorid" iteration="i">
			var punkt = new GLatLng( {ancvendorid.anclatitude} , {ancvendorid.anclongitude});

			var marke = new GMarker(punkt);
			map.addOverlay(marke);		
		</f:for>
	}
}

jQuery(document).ready(function() {
	ncLoadGmaps();
}); 

</script>
<div class="nc-global-google-map ">
	<div id="map" style="width: 1200px; height: 600px"></div>
</div>