Update index.html
Browse files- index.html +15 -1
index.html
CHANGED
@@ -111,8 +111,21 @@
|
|
111 |
fillColor: categoryColors[location.category],
|
112 |
fillOpacity: 0.8,
|
113 |
radius: 8
|
114 |
-
}).bindPopup(
|
|
|
|
|
|
|
|
|
|
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
marker.addTo(map);
|
117 |
markers.push(marker);
|
118 |
});
|
@@ -204,3 +217,4 @@
|
|
204 |
|
205 |
</body>
|
206 |
</html>
|
|
|
|
111 |
fillColor: categoryColors[location.category],
|
112 |
fillOpacity: 0.8,
|
113 |
radius: 8
|
114 |
+
}).bindPopup(`
|
115 |
+
<b>${location.name}</b><br>
|
116 |
+
Categoría: ${location.category}<br>
|
117 |
+
Conexiones remotas: ${location.connections}<br>
|
118 |
+
Tiempo medio de soporte: ${location.avgSupportTime} hrs
|
119 |
+
`); // Popup con detalles adicionales
|
120 |
|
121 |
+
marker.on('mouseover', function() {
|
122 |
+
marker.openPopup(); // Mostrar el popup cuando se pasa el mouse
|
123 |
+
});
|
124 |
+
|
125 |
+
marker.on('mouseout', function() {
|
126 |
+
marker.closePopup(); // Cerrar el popup cuando se deja de pasar el mouse
|
127 |
+
});
|
128 |
+
|
129 |
marker.addTo(map);
|
130 |
markers.push(marker);
|
131 |
});
|
|
|
217 |
|
218 |
</body>
|
219 |
</html>
|
220 |
+
|