Select to view content in your preferred language

Popup bug on dynamic layer?

4357
18
Jump to solution
09-11-2012 06:26 PM
RhettZufelt
MVP Notable Contributor
Not sure if this is a bug, or the right forum, but think it is more API related.

I imported a brand new FV3.0 uncompiled to make sure it wasn't due to any of my "customizations".

Modified the existing config to load the esri fire mapservice as type="feature" and type="dynamic"

    <geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" />      <!-- UI elements -->     <widget left="10"  top="50"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>     <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>     <widget right="20" top="55"    config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>     <widget left="0"   top="0"     config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>      <map wraparound180="true" initialextent="-14083000 3139000 -10879000 5458000" fullextent="-20000000 -20000000 20000000 20000000" top="40" addarcgisbasemaps="true">         <operationallayers>       <layer label="Dynamic Fires" type="dynamic" visible="false" alpha="1" visiblelayers="0"   url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/MapServer">   <sublayer id="0" popupconfig="popups/PopUp_Fires.xml"/>  </layer>                 <layer label="Feature Fires" type="feature" visible="true" alpha="1.0"                    popupconfig="popups/PopUp_Fires.xml"                    url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/MapServer/0"/>          </operationallayers>     </map>


If I turn on the type="feature", click on a point/icon, it will popup the info and let me click the zoom to button and it will zoom there (at least until I get to the last LOD).  I can click elsewhere in the map all I want (as if panning around the map), then click on the zoom to button (since the popup window is still active), and it will again zoom to the point.

However, if I try the same thing with type="dynamic", it will select the point and show the popup window.  If I click ANYWHERE else on the map, then click the zoom to button, I get the following error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.  at com.esri.ags.skins::PopUpRendererSkin/zoomToButton_clickHandler()  at com.esri.ags.skins::PopUpRendererSkin/__zoomToButton_click()


So, it seems to be losing its mappoint geometry when you click elsewhere on a dynamic layer, but not a feature layer?
Has anyone else seen this behaviour, and if so, is there a fix?

Thanks again,

R_
Tags (2)
0 Kudos
18 Replies
RhettZufelt
MVP Notable Contributor
Not sure where this is handled, but if I disable my popuprendererskin and just use the default popup, I can still make it happen.

Hopefully the development team is aware of this, and it is resolved in the next version as I really don't think this is related to the original post.

The original post, and the bug number, are for the popup on dynamic layer, click off of it loses it's geometry and the zoom to will throw null value errors.

This issues seems to be related to a glowfilter, so I suspect it is a different issue.

R_
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   It is a different issue but it is fixed in 3.1. This has been confirmed and tested.
0 Kudos
NicholasRanicar
Emerging Contributor
Is there any known workaround until FV3.1 becomes available?
Anyone know when 3.1 is due to be released?
thanks,
Nic
0 Kudos
RhettZufelt
MVP Notable Contributor
My "workaround" for the original post is to just not have the debugger version of flash player on the clients computer.

That way, they never know the error exists, it just ignores the "Zoom to" button now and then 🙂

R_
0 Kudos
NicholasRanicar
Emerging Contributor
Thanks for the reply. I was actually referring to the hijacked portion of the thread... where the GlowFilter causes GCOD due to it being larger than the map extent.
So far my workaround is similar to yours - just remove the layer that causes the problem.  🙂
0 Kudos
DavidRaijmakers
Regular Contributor
Anyone still facing the problem with the GCOD in the API 3.1

I am,

Someone already found out a workaround? Because it doesnt seem to be fixed..
0 Kudos
NicholasRanicar
Emerging Contributor
I didn't see it listed in the official bug fixes but it does seem to be ok for me now. Haven't tested exhaustively but the one workflow I had that would always cause the GCOD in the past now works.
0 Kudos
RhettZufelt
MVP Notable Contributor
Yes, I can confirm this is still an issue.  It seems like I have to work harder now to make it happen, and only on some of my lines, but it still does.

R_
0 Kudos
DasaPaddock
Esri Regular Contributor
This can be a problem on long lines. See this thread for a workaround:
http://forums.arcgis.com/threads/73766-Grey-exclamation-mark-on-polyline-popups-in-Viewer-3.1
0 Kudos