I am still having trouble. If I start with a map scale that shows the state of Colorado, it executes the centerAndZoom call, zooms in, and it is blurry. If I start way zoomed in it keeps this level of zoom. I created a sandbox example at: http://ndis-staging.nrel.colostate.edu/debug/map/geocode2.html. I am using a drop down list with suggestions, so the find-results event does not work. Instead I am using the select event. Is this the correct event to use? var myGeocoders = [
{
url: "http://ndis-flex.nrel.colostate.edu/ArcGIS/rest/services/AddressLocator_All2/GeocodeServer",
name: "AddressLocator_All2",
placeholder: "Search for a Colorado Place...",
minCharacters: 8,
singleLineFieldName: "PlaceName",
outFields: ["*"]
}];
geocoder = new esri.dijit.Geocoder({
autoNavigate: true, // do not zoom to best result
autoComplete: true,
showResults: true, // when true, suggestions are displayed as the user is typing
maxLocations: 20,
map: map,
arcgisGeocoder: false,
geocoders: myGeocoders
}, "search");
geocoder.startup();
// When geocoding is complete. this is also run when you highlight the typed in text to erase it.
geocoder.on("select", function(results) {
if (results.result)
map.centerAndZoom(results.result.feature.geometry, 11);
//map.setExtent(esri.geometry.getExtentForScale(map, "144448"));
//map.setScale(144448);
});
Thanks for the help,Tammy