Google maps: Unterschied zwischen den Versionen

Aus Vosp.info
Wechseln zu:Navigation, Suche
(Die Seite wurde neu angelegt: „ == Google Maps 2 == <source lang=html> <h1>Google Map 2</h1> <script src="http://maps.google.com/maps?file=api&v=2&key=" type="text/javascript"></…“)
 
Zeile 5: Zeile 5:
 
<source lang=html>
 
<source lang=html>
 
<h1>Google Map 2</h1>
 
<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="
 
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key="
 
   type="text/javascript"></script>
 
   type="text/javascript"></script>

Version vom 30. April 2019, 19:08 Uhr


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>