var continents = $.getJSON(FILELOCATION);
continents.done(function(response) {
geojson = L.geoJson(response, {
style: style,
onEachFeature: onEachFeature
}).addTo(map);
});
--
---
You received this message because you are subscribed to the Google Groups "Leaflet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leaflet-js+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks for all of the help guys. The solution I used in the end was to assign a global boolean variable which triggers when the user clicks a layer. The functions (set by the onEachFeature functions) do different things based on the boolen's value.
Chris