we hebben enkele nieuwe plugin voorbeelden toegevoegd aan de Esri Leaflet website die renderers van ArcGIS Online tonen, toegang tot GP-services, en het tegelijkertijd doorzoeken van feature layers en map services terwijl je geocodeert...<\/SPAN><\/P>\n <\/P>\nEsri Leaflet Quickstart | Esri Leaflet<\/A>\/<\/SPAN><\/P>\n <\/P>\nveel plezier!<\/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!
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.