griggsbe

Geocoder Widget on Mobile Device Not Working

Discussion created by griggsbe on Apr 22, 2013
Latest reply on Apr 25, 2013 by tbearly40
Hello,

I have created a mobile view (using dojox.mobile) to show a map and its layers. I have all map and layer functionality working properly but my Geocoder widget does not work. It starts "searching" for the inputted address but never returns a value, or even a blank screen.

Here is the declaration of the Geocoder:
var geocoder = new esri.dijit.Geocoder({
        map: map,
        geocoders: geocoder,
        theme: "simpleGeocoder",
        arcgisGeocoder: {
            url: "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer",
            placeholder: "Find a location"
        }
    }, dojo.byId("search"));  
    geocoder.startup();

The error I am getting is an undefined, "_2d is undefined." It appears to be occurring when the geocoder is assigned search extent values. I don't know why this would be occurring, perhaps it is an issue with my maps extent and the default geocoding search extent?

Any help would be appreciated!
Thanks!

Outcomes