Hi, I am currently using a map gallery template, but am having trouble when zooming to and address. I know it has something to do with my tiled basemap. I want to be able to zoom to selection/location when I put in an address without the basemap disappearing. Is there away to Any suggestions would be appreciated. I tried changing the selected text below, but that didn't work. I ultimately would like use one of the LOD's from my rest endpoint... http://gis.arlingtonva.us/ArcGIS/rest/services/Arlington_Basemap_Plain/MapServer?f=json&pretty=true
/*------------------------------------*/ // ZOOM TO LOCATION: ZOOMS MAP TO LOCATION POINT /*------------------------------------*/ function zoomToLocation(x, y, IPAccuracy){ // calculate lod var lod = 14; // set point var pt = esri.geometry.geographicToWebMercator(new esri.geometry.Point(x, y)); // IF LOCATE RESULTS if(locateResultLayer) { locateResultLayer.clear(); } else{ locateResultLayer = new esri.layers.GraphicsLayer(); map.addLayer(locateResultLayer); } var pointSymbol = new esri.symbol.PictureMarkerSymbol("graphics/ui/bluepoint-21x25.png", 21, 25).setOffset(0,12); var locationGraphic = new esri.Graphic(pt,pointSymbol); locateResultLayer.add(locationGraphic); // zoom and center map.centerAndZoom(pt,lod); }