Hi, working on my webmap http://lucamoiana.github.io/mdr2015/boilerplate.html
I created three groups with different polylines and groups of markers; controls work the first time and I can turn ON/OFF goups, but, if I go back and turn them ON again, markers are not showing up.
why? what can I do?
CODE:
var corto_group = L.layerGroup([corto, ristoro_smaria, ristoro_massina]);
var medio_group = L.layerGroup([medio, ristoro_smaria, ristoro_massina, ristoro_roccolo, ristoro_visconta ]);
var lungo_group = L.layerGroup([lungo, ristoro_smaria, ristoro_massina, ristoro_roccolo, ristoro_visconta ]);
var groupedOverlays = {
"7 Km": corto_group,
"15 Km": medio_group,
"20 Km": lungo_group
};
var groupedOverlays2 = {
"Servizi": servizi
};
var options = { exclusiveGroups: ["Percorsi"] };
L.control.layers(groupedOverlays, groupedOverlays2,{collapsed: false}).addTo(map);--
---
You received this message because you are subscribed to a topic in the Google Groups "Leaflet" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leaflet-js/n24FmM1FyxU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leaflet-js+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to leaflet-js+unsubscribe@googlegroups.com.