geocode: [{ url: location.protocol + "//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"}, { url: location.protocol + "//gis.linncounty.org/arcgis/rest/services/PublicBase/LocatorComposite/GeocodeServer", name: "LocatorComposite", singleLineFieldName: "SingleLine", placefinding: true, placeholder: "Find an Address or GPN" }]
var options = { map: _self.options.map, zoomScale: 400, theme: 'modernGrey', autoComplete:true };
There is a place within the commonConfig.js file to enter a URL for a geocode service, however when I enter ours, the search box disappears.
Do I need to replace any values I currently have?
Thanks a lot Ian! Geocoder works like expected now.Would you happen to know how to set the zoom level when an address is selected?And yes, I am located in Cedar Rapids, working for Linn County. It's a small world!
geocode: [{ url: location.protocol + "http://gis.linncounty.org/arcgis/rest/services/PublicBase/LocatorComposite/GeocodeServer", name: "LocatorComposite", singleLineFieldName: "Single Line Input", placefinding: true, placeholder: "Find an Address or GPN" }]
geocode: [{ url: location.protocol + "//gis.linncounty.org/arcgis/rest/services/PublicBase/LocatorComposite/GeocodeServer", name: "LocatorComposite", singleLineFieldName: "SingleLine", placefinding: true, placeholder: "Find an Address or GPN" }]
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.