netzmacht / contao-leaflet-maps

Leaflet maps extension for Contao CMS
12 stars 8 forks source link

Markers are not displayed in debug mode on Mac #93

Closed zonky2 closed 3 years ago

zonky2 commented 3 years ago

Markers are not displayed in debug mode on Mac

The <script> Tags should inside of this template... https://github.com/netzmacht/contao-leaflet-maps/blob/master/src/Bundle/Resources/contao/templates/leaflet_map_js.html5

otherwise the information about the template path is entered into the Javascript, e.g.

<script>
<!-- START path to template -->
...
<!-- END path to template -->
<script>
dmolineus commented 3 years ago

The comments needs to be stripped here. Contao templates are not made for rendering anything different than html. For historical reasons the behaviour won't be changed.

zonky2 commented 3 years ago

Why is the <script> not in your template like in Contao?

dmolineus commented 3 years ago

Behoben in Version 3.2.2