Select to view content in your preferred language

Identify Widget - Zoom In Issue

980
11
01-26-2011 08:47 AM
JamesKo
Occasional Contributor
I'm using Robert Scheitlen's Identify Widget 2.2.1 and was wondering if anyone else is experiencing an error when zooming into features? The data is highlighting correctly; however, when I click on the record it returns the following error:

ArgumentError: Error #2004: One of the parameters is invalid.
at flash.display::Graphics/drawRect()
at com.esri.ags.symbols::SimpleFillSymbol/traceExtent()
at com.esri.ags.symbols::SimpleFillSymbol/drawExtent()
at com.esri.ags.symbols::SimpleFillSymbol/drawSolidFillSymbol()
at com.esri.ags.symbols::SimpleFillSymbol/drawFillSymbol()
at com.esri.ags.symbols::SimpleFillSymbol/draw()
at com.esri.ags::Graphic/drawWithSymbol()
at com.esri.ags::Graphic/commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/validateProperties()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()

Thanks in advance,
James
Tags (2)
0 Kudos
11 Replies
RobertScheitlin__GISP
MVP Emeritus
James,

  Notice all the errors are coming form the API and none mention the identify widget code, so there must be some issue with the graphics that are being returned by the identify task. Is this error only on this specific layer or just a certain polygon...?
0 Kudos
JamesKo
Occasional Contributor
Robert,

I seem to be getting an error message for every layer...here's another:

ArgumentError: Error #2004: One of the parameters is invalid.
at flash.display::Graphics/drawRect()
at com.esri.ags.layers::Layer/drawBitmap()
at com.esri.ags.layers::Layer/updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()

Any ideas?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
James,

   Are you using the correct compiled version? As you will notice in the zip file there is a 2.1 and 2.2 compiled version depending on which version of the FlexViewer you are using.
0 Kudos
JamesKo
Occasional Contributor
I'm using the uncompiled version. I just cleaned and rebuilt the project again just to make sure but no luck.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
James,

   Which version of the Flex Viewer source are you using and which version of the Flex API is in the libs folder?
0 Kudos
JamesKo
Occasional Contributor
I'm using 2.2 and agslib-2.2-2010-12-08.swc.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
James,

   Have you looked at your problems window to see if there are any build issues or warnings
0 Kudos
JamesKo
Occasional Contributor
Hi Robert,

I'm not getting any unusual problems or warnings; however, I did notice that whenever it crashes, the value of the map.scale = 0. What I did was test for the idResult.zoomScale = 0 then change it to the zoomScale. It seems to be working.

As always, thanks for help.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
James,

So do you have a zoomscale set for your layers?

  <layer>
   <name>Zoning</name>
   <fields>ZONING_NAME,ZONING_TYPE</fields>
   <links>
    <linkfield icon_or_text_or_img="text"
    iconfield="" iconprefix="" iconsuffix=""
    linkalias="" linkprefix="" linksuffix=""/>
   </links>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>


What about the defaultzoomscale?

 <defaultzoomscale>5000</defaultzoomscale>
0 Kudos