<?xml version="1.0" ?> <configuration> <title>{DESCRIPTION}</title> <fields> <field name="DESCRIPTION"/> <field name="ONLINE"/> <field name="LAST_UPDATED"/> <field name="URL"/> </fields> <medias> <media chartfields="" type="image" caption="Latest Image {LAST_UPDATED} online: {ONLINE}" imagesource="{URL}" imagelink="{URL}"/> </medias> </configuration> <!-- Pop-up configuration file for: http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/2 -->
Gerr, Well the only customizing of the PopUpInfo I have had time to do so far is remove the rectangle from around the media browser and some space optimization of the window. To begin customizing you need to create a PopUpRenderSkin by choosing a new MXML Skin and give it a package name, name, and host component of com.esri.ags.webmap.PopUpRenderer, Then un-check Create as copy of. Then you can open the arcgis_api_for_flex_2_3\ArcGIS_Flex\skins\src\com\esri\ags\skins\PopUpRendererSkin.mxml from your download of the 2.3 version of the API and copy and paste everything in that file.That's how you start.
<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>
esri|PopUpRenderer { skinClass:ClassReference('widgets.MyPopUps.ParcelPopUpRendererSkin'); }
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
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>
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.
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.
Nasif, This is a known issue with popups and there is an enhancement request in the system to fix this.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.