Ich bin mir ehrlich gesagt nicht sicher, welche API es ist (static ist es nicht, es ist ja nicht nur ein Bild), aber am Ende kommt ein iFrame mit eingebetteter Karte heraus.
mod_anystores_searchmap.html5:
HTML-Code:
<script>
function initialize()
{
var map = new google.maps.Map(document.getElementById('map-canvas'), {
zoom: 6,
center: new google.maps.LatLng(51.165691, 10.451526),
streetViewControl: false,
mapTypeId: "roadmap",
});
var stores = [{'xxx'}];
var markers = [];
var markerCluster = new MarkerClusterer(map, markers, {
imagePath: 'system/modules/anyStores/assets/js/markerclusterer/images/m'
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
<section id="map-canvas" style="height:<?php echo $this->mapHeight['value']; ?><?php echo $this->mapHeight['unit']; ?>" class="<?= $this->class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif ?>></section>
Im Output ist dann folgendes erzeugt (gekürzt):
HTML-Code:
<section id="map-canvas" style="height: 50vh; position: relative; overflow: hidden;" class="mod_anystores_searchmap block">
[...]
<iframe aria-hidden="true" frameborder="0" tabindex="-1" style="z-index: -1; position: absolute; width: 100%; height: 100%; top: 0px; left: 0px; border: none; opacity: 0;" allowfullscreen=""></iframe>
[...]
</section>
Also ganz klar ein iFrame, der vom Cookiebanner erfasst werden müsste?!