Pārlūkot izejas kodu

Se actualiza vendor

Maximiliano Schvindt 7 gadi atpakaļ
vecāks
revīzija
3361cc3639
1 mainītis faili ar 1 papildinājumiem un 12 dzēšanām
  1. 1 12
      Resources/views/Leaflet/leaflet_wms.html.twig

+ 1 - 12
Resources/views/Leaflet/leaflet_wms.html.twig

@@ -70,19 +70,8 @@ L.TileLayer.BetterWMS = L.TileLayer.WMS.extend({
   }, 
   
   showGetFeatureInfo: function (err, latlng, content) {
-    /*
-    window.map.eachLayer(function (layer) {
-      console.log(layer);
-    }); 
-    */
 
-    console.log(content);
-
-    string = "ONU: " + content.id + "<br /> Tx: " + content.tx + "<br /> Rx: " + content.rx + "<br /> Status: " + content.status + "<br /> Muestreo: " + content.muestreo;
-    popup = L.popup()
-    .setLatLng(latlng)
-    .setContent(string)
-    .openOn(window.map);
+    customPopupFeature(latlng, content);
   }
 });