Google maps
Aus Vosp.info
Version vom 30. April 2019, 19:08 Uhr von F (Diskussion | Beiträge) (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"></…“)
Google Maps 2
<h1>Google Map 2</h1>
<script src="http://maps.google.com/maps?file=api&v=2&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>