I was hoping someone could help me. I have created a popup using Viewer for Flex for my web viewer to show images taken in the field and a clickable external link (code below) and it works well.
What I now want to do is edit the size of the popup window for these popups. I know from previous posts that I need to edit PopUpRendererSkin.mxml I have looked at that and think I have identified the aspects of code I need to edit
And <supportClasses:PopUpMediaBrowser id="mediaBrowser" height="400" width="600" skinClass="com.esri.ags.skins.supportClasses.PopUpMediaBrowserSkin"/>
I come unstuck with following this. I am completely new to flash builder and have no experience editing skins and struggling to pick up the concepts of it for popups. I understand it for widgets were you have an .xml file and a .swf file pointed to in your widget container, however popups donâ??t point to a .swf so I am confused by their architecture.
I guess what I need to know is what steps I need to execute so that I have a working popup for my images that I can trial and error different popup window sizes for. Any help would be greatly appreciated. Liam
In a nutshell, the popupconfig.xml file is set using the <layer> tag. This tells the API which fields/formatting, etc. to use for the popup window for each feature.
When you click on a feature that is configured for a popup, it sends the "data" to the infowindow to popup.
If you add this code to the default.css file (and have the PopUpRendererSkin.mxml file in the path listed):
then the information is passed "through" the popuprendererskin.mxml and can be changed/formatted/modified, etc. here before it is sent to the infowindow to "popup".
So, if you make the above change to your default.css, then you should see the changes to width/heigth that you posted above.
R_
Lots of info about this on the forums already. If you look through these, you should get an idea of how/where the data, media, etc. is being handled.
In a nutshell, the popupconfig.xml file is set using the <layer> tag. This tells the API which fields/formatting, etc. to use for the popup window for each feature.
When you click on a feature that is configured for a popup, it sends the "data" to the infowindow to popup.
If you add this code to the default.css file (and have the PopUpRendererSkin.mxml file in the path listed):
then the information is passed "through" the popuprendererskin.mxml and can be changed/formatted/modified, etc. here before it is sent to the infowindow to "popup".
So, if you make the above change to your default.css, then you should see the changes to width/heigth that you posted above.
R_
Lots of info about this on the forums already. If you look through these, you should get an idea of how/where the data, media, etc. is being handled.