Select to view content in your preferred language

SFV : Zoom To Searched Record - Basemaps disappears

825
4
04-14-2010 10:06 AM
NitinBele
Emerging Contributor
Hello,

When searched record is clicked for zooming in , the basemap (ESRI_StreetMap_World_2D) disappears .
But show up again when zoom Out.

However,at that extent ESRI_Imagery_World_2D is visible.
Have tried to provide some hard code values in clickRecord function in SearchWidget.mxml ,but no change.
I am using spatial reference value -2229  in SearchWidget.xml.

Please suggest.

regards,
Nitin Bele
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Nitin,

   Just change your zoomscale in the SearchWidget.xml to a higher value. It is 2000 by default, make it 5000.
0 Kudos
NitinBele
Emerging Contributor
Thanks Robert,
But it still acts in the same way.
Attchaching my xml herein. could you pls. take a look ?

<?xml version="1.0" ?>
<configuration>
<layers>
  <layer>
   <name>Structure Existing</name>
   <url>http://g2vlgiw02/ArcGIS/rest/services/IT-GIS/TWG_Main/MapServer/21</url>
   <expression>STR_NAME LIKE '[value]%'</expression>
   <textsearchlabel>Search by Structure Name [Example: M107-T1]</textsearchlabel>
   <graphicalsearchlabel>Use one of the graphical search tools to select incidents</graphicalsearchlabel>
   <fields>STR_NAME</fields>
   <titlefield>STR_NAME</titlefield>
   //<linkfield></linkfield>
   <gridfields>STR_NAME,LINE_NAME,UPD_DATE,LAT,LON</gridfields>
   <gridhyperfields showalias="false"/>
   <zoomscale>5000</zoomscale>
  </layer>
  <layer>
   <name>Structure New</name>
   <url>http://g2vlgiw02/ArcGIS/rest/services/IT-GIS/TWG_Main/MapServer/22</url>
   <expression>NAME LIKE '[value]%'</expression>
   <textsearchlabel>Search by Structure Name [Example: M22-T5]</textsearchlabel>
   <graphicalsearchlabel>Use one of the graphical search tools to select incidents</graphicalsearchlabel>
   <fields>NAME</fields>
   <titlefield>NAME</titlefield>
   //<linkfield></linkfield>
   <gridfields>NAME,STATUS,LINE_NAME,KV,STATION</gridfields>
   <gridhyperfields showalias="false"/>
   <zoomscale>5000</zoomscale>
  </layer>
 
</layers>
<spatialReference>2229</spatialReference>
<zoomscale>5000</zoomscale>
<geometryservice></geometryservice>
<!--Default .csv file name-->
<csvdefaultname>Selected Records</csvdefaultname>
</configuration>

regards,
Nitin Bele
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nitin,

   Is the icon for the returned search result in the correct location on the map?
0 Kudos
NitinBele
Emerging Contributor
Yes Robert,
It is in the exact location of the searched feature.
0 Kudos