Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Leaflet for mobile app

$
0
0

Thiago Zuquinali 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 Thiago

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.



Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>