[GIS] Adding button to move map Direction in Leaflet
esri-leafletleafletleaflet-draw
I want direction button in my Leaflet map so user can move map in mobile or desktop browser easily.
I am new and do not know how to start. Please guide me.
Best Answer
You can start here: Leaflet.Pancontrol. Check the code repository and download code to your plugins folder inside leaflet folder. Then in code just reference to the js file/files.
That seems to allow it to work once that is added. This fixes it for version 0.7.3 of leaflet. If that line doesn't work, try doing it to the first div or something.
please forgive the product promotion, but if you'd like to skip administering the database you might consider trying Esri's cloud hosted feature service storage and open source Esri Leaflet plugin to write in the features.
afterward you can execute both SQL and spatial queries and specify GeoJSON as the output format.
you can create a free developer account at https://developers.arcgis.com to get 50 free credits a month to test out the tools. this gives you over 200MB of hosted feature service storage and individual queries against your data are free.
relevant links:
Esri Leaflet API Reference and examples
Best Answer
You can start here: Leaflet.Pancontrol. Check the code repository and download code to your
plugins
folder insideleaflet
folder. Then in code just reference to the js file/files.