POST
|
Well, not sure if you can do anything about it with the compiled version. However, if you have the capability to compile, see this thread: http://forums.arcgis.com/threads/65432-(e)mapswitcher-widget-basemapsContainer-on-top?p=227012#post227012 R_ That did the trick. Thanks!
... View more
12-11-2012
08:02 AM
|
0
|
0
|
459
|
POST
|
In the Enhance Search Widget Sample App the Basemap "flyout", the Map Switcher widget, is on top of any open widget. However, running uncompiled download, it's behind all the widgets. Not sure how to correct this so it's on top. Thanks.
... View more
12-11-2012
07:37 AM
|
0
|
0
|
459
|
POST
|
Here is an APP created with Flash(Flex) Builder 4.5 It's designed for the iPad but will install on iPhone. You can add your own web service to try it out. http://itunes.apple.com/us/app/geomobile-for-arcgis/id459112762?mt=8 Interesting Article: Developing a Custom ArcGIS Application for the iPad 2 http://www.esri.com/news/arcuser/0112/developing-a-custom-arcgis-application-for-the-ipad2.html Check out http://devgirl.org/2011/06/20/flexair-for-ios-development-process-explained/ for Flex/AIR for iOS Development Process Explained.
... View more
03-22-2012
11:26 AM
|
0
|
0
|
193
|
POST
|
I was able to get this to work. Although there are certainly some better coding techniques when it comes to the function mapScheme_changeHandler in the HeaderControllerWidget.mxml. Sample Flex Viewer 2.5 ArcGIS Flex API 2.5 ------------- ------------- Files attached: config.xml HeaderControllerWidget.mxml AppEvent.as TocItem.as
... View more
03-08-2012
10:28 AM
|
0
|
0
|
286
|
POST
|
I managed to hack out some progress on my issue. The LayerListWidget and MapSwitchWidget will "partially" update after the dropdrownlist item selection but only to a point. I need to change the updateCB function to act just like the visiblelayer arraycollections in only turning on those layers in the collection and by default turning the layers not in the array collection off. It seems the visiblelayer array collections would need to go over to the updateCB function. Then those layers in the array collections would be turned on and the rest turn off. Any help on this would be appreciated. Thank you. ----------------------------------------- I updated the code for the TocItem.as file: ----------------------------------------- public function TocItem(parentItem:TocItem = null) { _parent = parentItem; //****Updated to ViewContainer***SiteContainer.addEventListener(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, updateCB); //****ViewContainer Deprecated***ViewerContainer.addEventListener(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, updateCB); AppEvent.addListener(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, updateCB); } private function updateCB(event:AppEvent):void { if(this is TocLayerInfoItem) { var tli:TocLayerInfoItem = this as TocLayerInfoItem; if(tli.layerInfo.name == event.data){ setVisible(_visible ? false : true); } } } ---------------------------------------- I updated the HeaderControllerWidget.mxml ---------------------------------------- protected function mapScheme_changeHandler(event:IndexChangeEvent):void { { if (mapScheme.selectedIndex == 0) ///Parcels, Sales, Foreclosures - dropdownlist { var servA:ArcGISDynamicMapServiceLayer = map.getLayer("TaxParcel") as ArcGISDynamicMapServiceLayer; var servB:ArcGISDynamicMapServiceLayer = map.getLayer("Assessment") as ArcGISDynamicMapServiceLayer; servA.visibleLayers = new ArrayCollection([0]); servB.visibleLayers = new ArrayCollection([1,2]); //****Deprecated********ViewerContainer.dispatchEvent(new AppEvent(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, "TaxParcelPublishing")); AppEvent.dispatch(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, "TaxParcelPublishing"); AppEvent.dispatch(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, "Recorded Tax Parcel Sales"); AppEvent.dispatch(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, "Sheriff's Deeds"); } //Assessment Appeals - dropdown else if (mapScheme.selectedIndex == 1) { var servA:ArcGISDynamicMapServiceLayer = map.getLayer("TaxParcel") as ArcGISDynamicMapServiceLayer; var servB:ArcGISDynamicMapServiceLayer = map.getLayer("Assessment") as ArcGISDynamicMapServiceLayer; servA.visibleLayers = new ArrayCollection(); servB.visibleLayers = new ArrayCollection([3]); AppEvent.dispatch(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, "Assessment Appeals"); } } }
... View more
02-22-2012
12:20 PM
|
0
|
0
|
286
|
POST
|
Could the project you're importing actually be configured as an Adobe Air Project in Flash Builder 4.0?
... View more
02-16-2012
06:08 PM
|
0
|
0
|
172
|
POST
|
It may be the limit in the web service Parameters "Maximum Number of Records Returned by Server:". The default is 1000.
... View more
02-16-2012
12:32 PM
|
0
|
0
|
154
|
POST
|
I have tried to hack may way through two older posting to resolve my issue with programmatically turn layers on/off and then updating the LayerListWidget and MapSwitchWidget. I am using API 2.5 and the Sample Flex Viewer. http://forums.arcgis.com/threads/20965-LiveMapsWidget-doesn-t-follow-changes http://forums.esri.com/Thread.asp?c=158&f=2421&t=300662#939976 I have modified the HeaderControllerWidget to add a dropdownlist control which turns layers on and off but doesn't update the LayerListWidget and MapSwitchWidget. The attached file contains the config.xml and modified HeaderControllerWidget.mxml files. The App runs but the same problems exists. I have modified/added to the TOCItem.as: [INDENT][INDENT] replaced import com.esri.solutions.flexviewer.AppEvent; with import com.esri.viewer.AppEvent; replaced import com.esri.solutions.flexviewer.SiteContainer; with import com.esri.viewer.ViewerContainer; public function TocItem(parentItem:TocItem = null) { _parent = parentItem; //SiteContainer.addEventListener(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, updateCB); //AppEvent.addListener(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, updateCB); ViewerContainer.addEventListener(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, updateCB); } private function updateCB(event:AppEvent):void { if(this is TocLayerInfoItem) { var tli:TocLayerInfoItem = this as TocLayerInfoItem; if(tli.layerInfo.name == event.data){ setVisible(_visible ? false : true, true); } } }[/INDENT][/INDENT] I added to the AppEvent.as: [INDENT][INDENT]public static const PROGRAMATIC_LAYER_VISIBILITY_CHANGED:String = "programicLayerVisibilityChanged";[/INDENT][/INDENT] And added to the HeaderControllerWidget [INDENT][INDENT] private function RefreshLayers(event:Event):void { //Alert.show("Test") ViewerContainer.dispatchEvent(new AppEvent(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED,"TaxParcel")); ViewerContainer.dispatchEvent(new AppEvent(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED,"Assessment")); } protected function mapScheme_changeHandler(event:IndexChangeEvent):void { { if (mapScheme.selectedIndex == 0) ///Parcels, Sales, Foreclosures - dropdown { //Alert.show("") var servA:ArcGISDynamicMapServiceLayer = map.getLayer("TaxParcel") as ArcGISDynamicMapServiceLayer; var servB:ArcGISDynamicMapServiceLayer = map.getLayer("Assessment") as ArcGISDynamicMapServiceLayer; servA.visibleLayers = new ArrayCollection([0]); servB.visibleLayers = new ArrayCollection([1,2]); servA.refresh(); servB.refresh(); RefreshLayers(event); } //Assessment Appeals - dropdown else if (mapScheme.selectedIndex == 1) { //Alert.show("") var servA:ArcGISDynamicMapServiceLayer = map.getLayer("TaxParcel") as ArcGISDynamicMapServiceLayer; var servB:ArcGISDynamicMapServiceLayer = map.getLayer("Assessment") as ArcGISDynamicMapServiceLayer; servA.visibleLayers = new ArrayCollection(); servB.visibleLayers = new ArrayCollection([3]); servA.refresh(); servB.refresh(); RefreshLayers(event); } } }[/INDENT][/INDENT] I woudl appreciate any help on this. Thank you.
... View more
02-16-2012
12:19 PM
|
0
|
2
|
3608
|
POST
|
NOTE: The above "import com.esri.ags.layers.DynamicMapServiceLayer;" should be "import com.esri.ags.layers.ArcGISDynamicMapServiceLayer;" ----- I modified the HeaderControllerWidget to add the dropdownlist control and added the services to the config file. (both files attached) Seems to be working when all the layers are "on". But the LayerListWidget and I think it's the MapSwitchWidget with layers under the "More..." button, do not update to reflect the layers being turned on and off by the dropdownlist control selection. So if layers are off they do not come on. It seems the LayerListWidget and MapSwitchWidget update each other is some way which is what I think I need to do. How can I cause the two widgets to update with the dropdownlist control? EDIT: I have found a more recent posting to try. http://forums.arcgis.com/threads/20965-LiveMapsWidget-doesn-t-follow-changes Thanks.
... View more
02-15-2012
09:53 AM
|
0
|
0
|
241
|
POST
|
Thank you very much. Always helpful. I was able to hack my way to getting a couple of the buttons working and alternatively, a dropdown list with the same functionality. However, my goal is to add this to the ArcGIS Viewer for Flex with the dropdownlist control in the widget tray. I am not sure how this should be done. Do I create a new widget or do I modify the HeaderController widget to included the dropdownlist control? Bob <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:esri="http://www.esri.com/2008/ags" height="100%"> <fx:Script> <![CDATA[ import com.esri.ags.Map; import com.esri.ags.layers.DynamicMapServiceLayer; import com.esri.ags.layers.Layer; import mx.collections.ArrayCollection; import spark.events.IndexChangeEvent; private function button1_clickHandler(event:MouseEvent):void ///Parcels, Sales, Foreclosures - button { var servA:ArcGISDynamicMapServiceLayer = myMap.getLayer("mapID1") as ArcGISDynamicMapServiceLayer; var servB:ArcGISDynamicMapServiceLayer = myMap.getLayer("mapID2") as ArcGISDynamicMapServiceLayer; servA.visibleLayers = new ArrayCollection([0]); servB.visibleLayers = new ArrayCollection([1,2]); } private function button2_clickHandler(event:MouseEvent):void //Assessment Appeals - button { var servA:ArcGISDynamicMapServiceLayer = myMap.getLayer("mapID1") as ArcGISDynamicMapServiceLayer; var servB:ArcGISDynamicMapServiceLayer = myMap.getLayer("mapID2") as ArcGISDynamicMapServiceLayer; servA.visibleLayers = new ArrayCollection(); servB.visibleLayers = new ArrayCollection([3]); } protected function mapScheme_changeHandler(event:IndexChangeEvent):void { if (mapScheme.selectedIndex == 0) ///Parcels, Sales, Foreclosures - dropdown { var servA:ArcGISDynamicMapServiceLayer = myMap.getLayer("mapID1") as ArcGISDynamicMapServiceLayer; var servB:ArcGISDynamicMapServiceLayer = myMap.getLayer("mapID2") as ArcGISDynamicMapServiceLayer; servA.visibleLayers = new ArrayCollection([0]); servB.visibleLayers = new ArrayCollection([1,2]); } //Assessment Appeals - dropdown else if (mapScheme.selectedIndex == 1) { var servA:ArcGISDynamicMapServiceLayer = myMap.getLayer("mapID1") as ArcGISDynamicMapServiceLayer; var servB:ArcGISDynamicMapServiceLayer = myMap.getLayer("mapID2") as ArcGISDynamicMapServiceLayer; servA.visibleLayers = new ArrayCollection(); servB.visibleLayers = new ArrayCollection([3]); } } ]]> </fx:Script> <fx:Declarations></fx:Declarations> <esri:Map width="100%" height="100%" id="myMap"> <esri:extent> <esri:Extent xmin="13405207.494668775" ymin="375295.187879043" xmax="13420321.02078715" ymax="393586.429745385"> <esri:SpatialReference wkid="102690"/> </esri:Extent> </esri:extent> <esri:ArcGISDynamicMapServiceLayer url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/IndustryFocusedPublicAccessMap/MapServer" id="mapID"> </esri:ArcGISDynamicMapServiceLayer> <esri:ArcGISDynamicMapServiceLayer url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/TaxParcelQuery/MapServer" id="mapID1" alpha="0.5"> <esri:visibleLayers> <s:ArrayCollection source="servA"/> </esri:visibleLayers> </esri:ArcGISDynamicMapServiceLayer> <esri:ArcGISDynamicMapServiceLayer url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsLiveLayers/MapServer" id="mapID2"> <esri:visibleLayers> <s:ArrayCollection source="servB"/> </esri:visibleLayers> </esri:ArcGISDynamicMapServiceLayer> </esri:Map> <s:Button x="22" y="77" label="Parcels, Sales, Foreclosures" click="button1_clickHandler(event)" width="206"/> <s:Button x="22" y="117" label="Parcels, Assessment Appeals" click="button2_clickHandler(event)" width="206"/> <s:DropDownList x="22" y="157" id="mapScheme" change="mapScheme_changeHandler(event)" width="206"> <mx:ArrayCollection> <fx:String>Parcels, Sales, Foreclosures</fx:String> <fx:String>Assessment Appeals</fx:String> </mx:ArrayCollection> </s:DropDownList> </s:Application>
... View more
02-14-2012
08:15 AM
|
0
|
0
|
241
|
POST
|
Is there a way to turn layers on/off across different web services programmatically by buttons or a combobox? Example: WebServicesA |-LayerA 0 |-LayerA 1 WebServiceB |-LayerB 0 |-LayerB 1 |-LayerB 2 Button1 - Turns off LayerA 1 and LayerB 0. Turns on LayerA 0, LayerB 1 , and LayerB2 Button2 - Turns off LayerA 0, LayerB 1. Turns on LayerA 1 and LayerB 0 Thank you.
... View more
02-13-2012
06:17 AM
|
0
|
5
|
465
|
POST
|
Can the Enhance Map Switcher v2.4 widget http://www.arcgis.com/home/item.html?id=c720fb45e752402d978c2fdbe4259746 be modify so that instead of the map services loading and unloading, a certain group of layers are turned on and off from different map services that stay load? The idea would be that different map services are loaded and certain layers make up say a Utility Map "theme" but you could switch to another group of layers making up a Zoning Map "theme". The idea being that some layers from the other group layers could still be turn on individually to add to each map theme if needed. In a way...like the ArcIMS Layers on/off app http://help.arcgis.com/en/webapi/flex/samples/01nq/01nq0000005q000000.htm Thanks you, B
... View more
02-09-2012
11:30 AM
|
0
|
0
|
1766
|
POST
|
I think I followed the above instructions correctly and added the code to the "Google Street View Widget" http://www.arcgis.com/home/item.html?id=f069d8a3aa304e29a432b48e5f64ca74 I just have one problem. The layer will not be added unless I open and close the widget, then open it again. One thing that might be different, I added "gsLayer = new ArcGISDynamicMapServiceLayer("URL");" to the init() function......widgetConfigLoaded="init()". I am not sure if this is correct. There doesn't appear to be an "creationComplete="init()" in the StreetViewWidget.mxml file. Maybe this needs to be somewhere else. Also, is there a way to exclude the layer being added from the TOC? Thank you. Edit: Seems to work if I have the map.addLayer(gsLayer,-1); in both the init() function and in the widgetOpenedHandler.
... View more
01-30-2012
08:35 AM
|
0
|
0
|
369
|
POST
|
I found another way to do this. I modified the dataGridProvider for the dataGrid: dataProvider="{sortAttributes(queryTask.executeLastResult.attributes)}" And added the function sortAttributes. 16 is option for numerical sort to override default. private function sortAttributes(attrSort:Array):Array { return attrSort.sortOn("OrderNo",16); }
... View more
06-16-2011
01:25 PM
|
0
|
0
|
164
|
POST
|
You might find your solution here. http://forums.arcgis.com/threads/10384-Retrieve-Coded-Domain-Values-from-Query?p=103727#post103727
... View more
06-15-2011
01:07 PM
|
0
|
0
|
154
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|