Select to view content in your preferred language

PopUps

8911
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
NasifAlshaier
Deactivated User
Thank you Robert..

is going to be an email or notification send out when this fix is completed?

Nasif
0 Kudos
BenKane
Regular Contributor
So, I have read through this thread and looked all over for a solution to enable resizing of the native popup windows in Flex Viewer 2.3.1.  I am trying to enable popups to resize so that they fit the entire contents (info, medias...).
I am unclear about where exactly the popup config files call in order to initialize the popup windows...it seems to me that if I could locate the root mxml files then I could edit them to size appropriately.

Thanks,
Ben K.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ben,

   There is no file in the Flex Viewer for the popups as it uses PopUpInfo component in the API for this. The actual locator that the popups are created in Flex Viewer are in the MapManager function createPopUpRenderer.  You will have to extend the API or just modify the skin. Some of that is discussed here:

http://forums.arcgis.com/threads/28487-PopUps
0 Kudos
NasifAlshaier
Deactivated User
Hello..

I would like to know if there was a fixed for the following post:
"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
WillHughes1
Frequent Contributor
So, I have read through this thread and looked all over for a solution to enable resizing of the native popup windows in Flex Viewer 2.3.1. I am trying to enable popups to resize so that they fit the entire contents (info, medias...).
I am unclear about where exactly the popup config files call in order to initialize the popup windows...it seems to me that if I could locate the root mxml files then I could edit them to size appropriately.

Thanks,
Ben K.


Hopefully the Flex Viewer team will make this easier to configure in the next release. It seem like this is a common problem all Flex developers are having since we need to accomodate for media of different sizes. It would be great to know what the Flex Viewer team is working on in future releases.

Will
0 Kudos
WillHughes1
Frequent Contributor
You can get FlashBuilder to "Create as a copy of" by setting the source attachment path on the API swc. Under the "Flex Build Path" expand the API swc and double-click "Source attachment" and then browse to ".../ArcGIS_Flex/skins/src" after unziping the API download.


Then what? How do you reference the skin in other widgets?
0 Kudos
NasifAlshaier
Deactivated User
Nasif,

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


Hi RObert..

do you know if the following issue was corrected in version 2.4:

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...

Thanks you
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nasif,

  No the enhancement did not make it in the 2.4 release.
0 Kudos
CharlesHarris
Emerging Contributor
This is a little late, but do you ever need to display a popup for the polygon layer?  If not then can't you just disable the mouse events on that graphics layer?  That is how we are taking care of this issue, again keeping in mind that we do not need to display a popup for the polygon layer.

Jeremy
0 Kudos
ChristopherOlsen
Frequent Contributor
Just as an FYI- this bug is listed as
"NIM068772- The text gets cut off within the Flex Viewer 2.3.1 for pop-up when displaying large textual information."
0 Kudos