Anyone know how would I go about utilizing ESRI's geocode capabilities in a pre-built seaerch box?...the code below is our function with the GeoCode widget added. However, the behavior isn't quite correct. I'd like to configure our search box & button to hit the ESRI geocoder
function searchAddress(address) {
function init() {
geocoder = new esri.dijit.Geocoder({
map: map,
autoComplete: true,
arcgisGeocoder: {
name: "Esri World Geocoder",
suffix: " Staunton, VA"
}
}, "AddressSearchButton");
geocoder.startup();
}
dojo.ready(init);
}