Wir haben einige neue Plugin-Beispiele auf der Esri Leaflet Website hinzugefügt, die Renderer von ArcGIS Online zeigen, den Zugriff auf GP-Dienste sowie das gleichzeitige Durchsuchen von Feature-Layern und Kartendiensten während des Geocodings...<\/SPAN><\/P>\n <\/P>\nEsri Leaflet Quickstart | Esri Leaflet<\/A>\/<\/P>\n <\/P>\nViel Spaß!<\/SPAN><\/P>
<\/P>\n
Viel Spaß!<\/SPAN><\/P>
your geocoding service is returning a bogus extent.
http://gis.ccpa.net/arcgiswebadaptor/rest/services/CompositeLocator/GeocodeServer/find?text=1900+grantham+road&sourceCountry=&outFields=*&maxLocations=&bbox=&outSR=4326&f=html
you have a couple different options to resolve the problem:
1. figure out how to fix the locator itself
2. override the plugin behavior in your leaflet app to just center on the address and a fixed zoom level instead of relying on the extent your service is passing back.
John,
I've encountered a weird quirk with the Geocoding plugin for Leaflet. When I use the ESRI World Geocoder, the map zooms in to the results.
However, if I use my organization's geocoding service and have the ESRI geocoder turned off, the marker is placed at the right location, but the map zooms out to a multi-state view.
The sample codes is on Codeacademy. I couldn't get JS Fiddle to work.
Any help or direction pointing is most helpful.
Thanks,
Patrick
the closest available sample demonstrates how to plug in a MapService provider, but you could use similar logic to insert your own geocoding provider.
i'd be happy to review a jsfiddle or jsbin if you get stuck.
if we get a simple sample together, i think it would be nice to add it to our website.
The new samples are great! I was looking at the geocoding sample (here)... very cool! Do you guys have any plans for releasing a sample that shows how to integrate geocoding from a custom service instead of one from AGOL? Don't want to reinvent the wheel here if it's already on your list.
Thanks again!
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.