Browse Source

Fix template para mostrar mapa

Guillermo Espinoza 7 năm trước cách đây
mục cha
commit
f7f0965891
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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 %}