Explorar o código

Fix template para mostrar mapa

Guillermo Espinoza %!s(int64=7) %!d(string=hai) anos
pai
achega
f7f0965891
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Resources/views/Leaflet/map.html.twig

+ 4 - 0
Resources/views/Leaflet/map.html.twig

@@ -16,7 +16,11 @@
 
 {% if object is defined %}
 <script type="text/javascript">
+    {% if object.extraData %}
     var dataValue = '{{ object.extraData|raw }}';
+    {% elseif object.location is defined %}
+    var dataValue = '{{ object.location.extraData|raw }}';
+    {% endif %}
 </script>
 {% endif %}