Google maps: Unterschied zwischen den Versionen
Aus Vosp.info
F (Diskussion | Beiträge) (→Google Maps 2) |
F (Diskussion | Beiträge) (→Google Maps 2) |
||
Zeile 2: | Zeile 2: | ||
== Google Maps 2 == | == Google Maps 2 == | ||
− | * mit fluid for schleife | + | * mit typo3 fluid for schleife |
<source lang=html> | <source lang=html> | ||
<h1>Google Map 2</h1> | <h1>Google Map 2</h1> |
Version vom 30. April 2019, 19:09 Uhr
Google Maps 2
- mit typo3 fluid for schleife
<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&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>