Select to view content in your preferred language

Identify Widget Zooms to Wrong Area

546
2
03-28-2011 11:38 AM
LisaArnold
Deactivated User
Hello,

I am using Robert's Identify Widget 2.2.2f. I have an instance where I identify in an area and get many results as is expected. However when I click on some of these results to zoom to it, the map zooms to varying parts of Northern Africa or the Mediterranean. Some of the identified results do zoom to the correct area. If I use the Enhanced Search widget and search for one of the polygons which in the Identify Results zooms to Africa, when zoom to it via the search results it zooms to the correct area. The Identify popup shows up in the correct place and the geometry is highlighted in the correct location. This is also happening in instances where I have just one identify result as expected, but still zooming to the other side of the world. All of my data is in NM and AZ.

One other issue, I want the zoom of the identify to always zoom to the extent I have specified. I specified the deafultzoomscale and zoomscale to the same number, 36000. I set forcescale to true. However when I zoom to the identified listing it is still zooming down to 5000.

<configuration>
 <identifylayeroption>visible</identifylayeroption>
 <identifytolerance>5</identifytolerance>
 <defaultzoomscale>36000</defaultzoomscale>
 <keepidentifyactive>false</keepidentifyactive>
 <returngeometryforzoom>true</returngeometryforzoom>
 <labels>
  <zoom2message>Click to Zoom to Point</zoom2message>
  <identifylabel>Identify</identifylabel>
  <resultslabel>Results</resultslabel>
  <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
  <pointlabel>Identify</pointlabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
 </labels>
 <useproxy>
  <proxylayer>
   <!--name>Imagery</name-->
  </proxylayer>
 </useproxy>
 <layers onlythese="true">
  <layer>
   <name>Arizona and New Mexico Elements</name>
   <fields>SF_ID, SciName, Last observation date, Local uncertainty distance (m)</fields><!--these are alias names, not field names-->
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>36000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Stewardship, General</name>
   <fields>NHNM ID, Owner Name Detailed, Primary Designation Name</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>36000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Stewardship, Detailed</name>
   <fields>NHNM ID, Owner Name Detailed, Primary Designation Name</fields> 
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>36000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
 </layers>
 <info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Lisa,

   Try setting returngeometryforzoom to false. Basically in the new version 2.2.2f and 2.2.3 if returngeometryforzoom is try then it will attempt to set the maps extent to 120% of the extent of the returned geometry and completely ignore the zoomscale if it is not a mappoint.
0 Kudos
LisaArnold
Deactivated User
Thanks Robert. I upgraded to 2.2.3 and set the returngeometryforzoom to false. Now both of my issues are resolved - no more zooming to Africa and it is zooming to the expected scale. I am still not sure why it was zooming to the other side of the world, but relieved to have to have it working now. Thank you.
0 Kudos