Select to view content in your preferred language

Geocoder Widget on Mobile Device Not Working

735
1
04-22-2013 07:25 AM
BenjaminGriggs
Emerging Contributor
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!
0 Kudos
1 Reply
TammyBearly
Deactivated User
Try removing the line:  geocoders: geocoder,
0 Kudos