Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline Geosearch #281

Open
macbeez opened this issue Sep 15, 2021 · 3 comments
Open

Offline Geosearch #281

macbeez opened this issue Sep 15, 2021 · 3 comments

Comments

@macbeez
Copy link

macbeez commented Sep 15, 2021

My goal is to create a completely offline mapping solution. I have found that the leaflets library works really well and provides what I need for the most part. I have created my offline map tiles which are stored locally and can display them in a browser successfully.

What I want to do now is to add a search bar to the map which will allow the user to type the name of a location and navigate to it. I found the following example which is exactly what I want from a UI perspective. However it queries ArcGIS for the geocoding. Is there a way to get this functionality to work completely offline? I assume that I would need a local database with coordinates and location names but I don't see how I would hook a local database into this library.

@gavinr gavinr transferred this issue from Esri/esri-leaflet Sep 16, 2021
@gavinr
Copy link
Contributor

gavinr commented Sep 16, 2021

Thanks for the question. Although it's a bit old, I think this is a duplicate of Esri/esri-leaflet#864 and you may find some good information there.

@jwasilgeo
Copy link
Contributor

jwasilgeo commented Sep 16, 2021

I agree that the other issue has some good ideas to consider. To add to all that, perhaps part of the solution may entail writing a custom provider for the L.esri.Geocoding.geosearch control.

This library has several providers, and looking into the patterns in their source files may help illustrate what would be required to write a brand new one to interact with your proposed "local database with coordinates and location names".

https://esri.github.io/esri-leaflet/api-reference/controls/geosearch.html#providers

https://github.com/Esri/esri-leaflet-geocoder/tree/master/src/Providers

@JeetuChoudhary
Copy link

JeetuChoudhary commented Feb 17, 2022

Hello, @monicabernard I am also trying to implement the ArcGIS map's offline functionality in Javascript. I need to download offline map tiles which are stored locally and can display them when there is no connectivity.
I am using Esri-leaflet to show the map inside my Ionic 6/ Angular app. If you can point me to some resources from which I can get some references and implement them. That will be very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants