wrote:
Hi Preeti Kumari,
you alredy try this one?
https://stackoverflow.com/questions/39415777/click-event-to-enable-and-disable-layer-in-leaflet-js
Hello
First of all sorry for the late reply, Yes i have seen this link, but not able to figure out how to use this in outsytems with leaflet Mobile plugin.
Actually i have added Below code in Leaflet js plugin :
Syntax Editor Code Snippet
EncodeJavaScript(TileLayer.Name) + ".addTo(" + EncodeJavaScript(LeafletMapName) + ");" + "Wells = L.featureGroup().addTo(" + EncodeJavaScript(LeafletMapName) + ");" + "Runs = L.featureGroup().addTo(" + EncodeJavaScript(LeafletMapName) + ");" + "L.control.layers(null, { 'Active store: Stores,'Active Grounds': Grounds}, { position: 'topright', collapsed: false })"+ ".addTo(" + EncodeJavaScript(LeafletMapName) + ");"
and then creating Marker on this layers in my main screen by feting data from data base.