Select to view content in your preferred language

PopUps

8937
56
04-18-2011 04:38 AM
philippschnetzer
Frequent Contributor
I have moved over my 2.2 app to 2.3.  I am using the QueryTool to display some traffic cameras and other static images and simply copied over the entire code from the 2.2 query tool and pasted it into the 2.3 version.  I did this because I want the query tool to still utilize the old InfoPopUp because I have that specifically configured.  Things work as expected - except that when the query is run the first time and a resulting icon is clicked on the map nothing shows in the InfoPopUp - but as soon you click on another point everything works as it did in 2.2.  There is some sort of conflict in there for the first time a point is clicked.  Should I just try to drop the InfoPopUp and try to make this work with the new popup or is this perhaps just a simple line of code missing preventing the first click from showing any results?

Thank you for any help!
Tags (2)
0 Kudos
56 Replies
RobertScheitlin__GISP
MVP Emeritus
Dasa,

   Thanks I knew I had this working before but could not remember how it was done. I knew you would know.
0 Kudos
GerryWatson
Emerging Contributor
Dasa, Robert.

Thanks for the help. I've created a customization of the popup and have it doing what I need. When the app goes live I'll send a link.

Cheers,

gerr
0 Kudos
LeeAllen
Frequent Contributor
Finally getting skinning under my belt, just need some help with updating the references.  I followed above steps and created the new PopupRendererSkin.  After modifying it to my liking, where else do I need to modify code to get the new skin to show up? What are the steps after creating and modifying skin?  Thanks for any help!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Lee,

   If it is a particular widget that you want to use the custom skin for than add code like this to the widget:

<fx:Style>
  @namespace s "library://ns.adobe.com/flex/spark";
  @namespace mx "library://ns.adobe.com/flex/mx";
  @namespace esri "http://www.esri.com/2008/ags";
  esri|PopUpRenderer
  {
   skinClass:ClassReference('widgets.MyPopUps.ParcelPopUpRendererSkin');
  }
 </fx:Style>
0 Kudos
LeeAllen
Frequent Contributor
Thanks for the response, but I haven't got that far yet. Actually, I just want the standard popup for feature layers to use the skin.  Any ideas?  Thanks again!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Lee,

   Than I would add:

esri|PopUpRenderer
  {
   skinClass:ClassReference('widgets.MyPopUps.ParcelPopUpRendererSkin');
  }


to the default.css than.
0 Kudos
LeeAllen
Frequent Contributor
Dasa, Robert.

Thanks for the help. I've created a customization of the popup and have it doing what I need. When the app goes live I'll send a link.

Cheers,

gerr


Gerry,

Any chance you could post your code for the skin? I have been unsuccessful so far with developing all the right parts to the skin and seeing my changes show up. 

Thanks!
0 Kudos
MikeCliffton
Emerging Contributor
Hi, Rober,

I add my code as below in EditWidget (following the above discussion)

<fx:Style> esri|Editor{
skinClass:ClassReference("widgets.Edit.MySkin");
}
</fx:Style>

I just copy all the code from EditorSkin.mxml to MySkin.mxml, did not change anything yet; but it always throw message like: "unable to resovle'../../../../assets/skins/ElementPolyline16.png' for transcoding".  It seems it can not find all those image in api_for_flex_2_3\ArcGIS_Flex\skins\src.  Thanks!

Lee,

   If it is a particular widget that you want to use the custom skin for than add code like this to the widget:

<fx:Style>
  @namespace s "library://ns.adobe.com/flex/spark";
  @namespace mx "library://ns.adobe.com/flex/mx";
  @namespace esri "http://www.esri.com/2008/ags";
  esri|PopUpRenderer
  {
   skinClass:ClassReference('widgets.MyPopUps.ParcelPopUpRendererSkin');
  }
 </fx:Style>
0 Kudos
NasifAlshaier
Deactivated User
Hello..

I have upgraded to 2.3.1  and I have a question in regard to the POP UP as well..

I have two separate mapserver (point and polygon layer)... When I display my point layer, I can click on the point and I get a pop up window with data for the point layer.. However; when I display both layers (mapserver) point and polygon and I click on the point layer, i get a pop up window with data for the polygon layer instead of the point layer... It was working fine prior to upgrading to 2.3.1.. I am using Flex SDK 4.1.

Any help or feedback is very much appreciated.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nasif,

   This is a known issue with popups and there is an enhancement request in the system to fix this.
0 Kudos