Im APP-DEV Modus werden keine Pins auf der Karte angezeigt
Closed this issue · 4 comments
marcuslelle commented
Grund ist meiner Meinung nach, dass das Script-Tag von der Ausgabe des Template-Namens zerschossen wird.
<div class="block-max-width">
<!-- TEMPLATE START: vendor/netzmacht/contao-leaflet-maps/src/Bundle/Resources/contao/templates/ce_leaflet_map.html5 -->
<!-- indexer::stop -->
<div class="ce_leaflet distributor__map first last block">
</div>
<!-- indexer::continue -->
<script>
<!-- TEMPLATE START: vendor/netzmacht/contao-leaflet-maps/src/Bundle/Resources/contao/templates/leaflet_map_js.html5 -->
L.contao.addMap('map_ce_7540', function() {
var map, layers = {}, controls = {}, icons = {};
map = L.map("map_ce_7540", {center: [47.6782206,11.0981091], zoom: 10, zoomControl: "", touchZoom: false, scrollWheelZoom: false, doubleClickZoom: false, boxZoom: false, tap: false, keyboard: false, dynamicLoad: false, adjustBounds: true});
layers.layer_1 = L.tileLayer.provider('OpenStreetMap.Mapnik', {});
layers.layer_1.addTo(map);
layers.mm_layer_nur_at_landingpage = L.geoJson({"type":"FeatureCollection","features":[]}, {boundsMode: "extend"});
L.contao.loadUrl("http://eggersmann.aikunde.de/leaflet/api/layer/6?context=page&contextId=449", "geojson", {}, layers.mm_layer_nur_at_landingpage, map);
layers.mm_layer_nur_at_landingpage.addTo(map);
map.calculateFeatureBounds();
return { map: map, layers: layers, controls: controls, icons: icons };
}());
</script>
<!-- TEMPLATE END: vendor/netzmacht/contao-leaflet-maps/src/Bundle/Resources/contao/templates/ce_leaflet_map.html5 -->
</div>
Würde mich an den Kosten für die Behebung beteiligen, wenn eine Rechnung möglich ist.
zonky2 commented
MM 2.2 EAP könnte auch was in den Finanzhut werfen...
zonky2 commented
komischer Weise gibt es nur ein "öffenenden Kommentar"
<!-- TEMPLATE START: vendor/netzmacht/contao-leaflet-maps/src/Bundle/Resources/contao/templates/leaflet_map_js.html5 -->
ber keinen schließenden....
dmolineus commented
Seems like contao adjusted the markup, https://github.com/netzmacht/contao-leaflet-maps/blob/master/src/MapProvider.php#L389
dmolineus commented
Behoben in 3.2.4.