|
POST
|
Ravinder, This is not as easy as it may sound. There is not out of the box html component in flex. The best thing available is something called flex iFrame. http://code.google.com/p/flex-iframe/
... View more
06-11-2010
10:28 AM
|
0
|
0
|
1185
|
|
POST
|
Susan, Add these to the init function. map.addEventListener(PanEvent.PAN_END, fireQuery);
map.addEventListener(ZoomEvent.ZOOM_END,fireQuery); Then add this new function private function fireQuery(Evt:Event):void
{
queryFeatures();
}
... View more
06-11-2010
10:03 AM
|
0
|
0
|
898
|
|
POST
|
Michele, I have found that AlivePDF has an issue using images that support Alpha in their addImageStream function. Just change the image to a JPG.
... View more
06-11-2010
09:52 AM
|
0
|
0
|
639
|
|
POST
|
Faisal, The definition query array needs to have a query string for each layer in the map service even if the query string is just an empty string. Here is a working example. Wait for the states and counties to draw and when you click the button the only state that will draw it's boundary is Washington. <?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:esri="http://www.esri.com/2008/ags"
layout="absolute"
styleName="plain"
pageTitle="Definition Query">
<mx:Script>
<![CDATA[
private function test():void
{
var dynLay:ArcGISDynamicMapServiceLayer = myMap.getLayer("Region") as ArcGISDynamicMapServiceLayer;
var layerDefArr:Array=new Array();
var qry:String= new String();
qry="OBJECTID=1";
layerDefArr[0] = "";
layerDefArr[1] = "";
layerDefArr[2] = "";
layerDefArr[3] = "";
layerDefArr[4] = "";
layerDefArr[5] = qry;
dynLay.layerDefinitions = layerDefArr;
dynLay.refresh();
}
]]>
</mx:Script>
<esri:Map id="myMap">
<esri:extent>
<esri:Extent xmin="-122.2" ymin="24.89" xmax="-70.59" ymax="46.92">
<esri:SpatialReference wkid="4326"/>
</esri:Extent>
</esri:extent>
<esri:ArcGISTiledMapServiceLayer
url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
<esri:ArcGISDynamicMapServiceLayer id="Region" name="Region" url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer"/>
</esri:Map>
<mx:Button x="41" y="536" label="Button" click="test()"/>
</mx:Application>
... View more
06-11-2010
07:40 AM
|
0
|
0
|
1218
|
|
POST
|
Img, Almost anything is possible using python and geoprocessing services. I would not know where to begin though.
... View more
06-11-2010
05:18 AM
|
0
|
0
|
591
|
|
POST
|
Lee, There is not a code gallery entry for this as it is so specific to my data and site. That being said adding the radio button is pretty trivial. 1. add the radio button mxml code to the widget. I added it above the mx:Text with id=txtLabelText <mx:HBox width="100%" horizontalAlign="center" horizontalGap="10">
<mx:RadioButtonGroup id="radiogroup1" itemClick="changeOpt(event)"/>
<mx:RadioButton label="PPIN" groupName="radiogroup1" selected="true" id="idPPIN" styleName="WidgetText" />
<mx:RadioButton label="Parcel" groupName="radiogroup1" id="idParcel" styleName="WidgetText" />
<mx:RadioButton label="Owner" groupName="radiogroup1" id="idOwner" styleName="WidgetText" />
<mx:RadioButton label="Address" groupName="radiogroup1" id="idAddress" styleName="WidgetText" />
</mx:HBox> 2. Add the changeOpt function private function changeOpt(event:ItemClickEvent):void{
switch(event.label.toLowerCase()){
case "ppin": {
txtLabelText.text = "Search Parcels by PPIN (Parcel ID Number) i.e. 1234"
queryExpr = "PPIN = '[value]'"
break;
}
case "parcel":{
txtLabelText.text = "Search Parcels by Parcel Number i.e. 1706140002014000"
queryExpr = "Parcel_Number = '[value]'"
break;
}
case "owner":{
txtLabelText.text = "Search Parcels by Owner Name i.e. Smith John (Last First)"
queryExpr = "NAME LIKE '%[value]%'"
break;
}
case "address":{
txtLabelText.text = "Search Parcels by Address i.e. 244 Cherokee TR"
queryExpr = "STREET_ADDRESS LIKE '%[value]%'"
break;
}
}
} 3. In the queryFeaturesText function replace queryExpr = configSearchText.expr; with if(queryExpr){
}else{
queryExpr = configSearchText.expr;
} That should be it.
... View more
06-11-2010
05:12 AM
|
0
|
0
|
353
|
|
POST
|
Img, As metadata is not exposed by REST endpoints the only way to work with metadata is by using Arcobjects or SOAP through a dot net web service. If you have questions on doing that they will be best answered on the forums that are specific to those technologies.
... View more
06-11-2010
04:03 AM
|
0
|
0
|
591
|
|
POST
|
Susan, Here is the thread. http://forums.esri.com/Thread.asp?c=158&f=2421&t=293577&mc=3#msgid915357
... View more
06-10-2010
05:46 PM
|
0
|
0
|
405
|
|
POST
|
Susan, Yep, you would have to listen for the map zoomEnd and PanEnd (as Map Extent Change get fired way to often) and have that listener call the queryFeatures function.
... View more
06-10-2010
05:37 PM
|
0
|
0
|
898
|
|
POST
|
Liz, You have to have the updated RecordData.mxml and the InfoPopup.mxml components from the zip file at this link for the field name color to work. http://forums.esri.com/Thread.asp?c=158&f=2421&t=295586&mc=5#922427
... View more
06-10-2010
02:38 PM
|
0
|
0
|
867
|
|
POST
|
Susan, Flex only has the ability to copy text to the clipboard and not images. Only AIR apps have the ability to put images on the clipboard. Look here http://forums.esri.com/Thread.asp?c=158&f=2421&t=303059&mc=1#msgid947906
... View more
06-10-2010
02:27 PM
|
0
|
0
|
405
|
|
POST
|
Susan, You did not put the line in the right spot. private function queryFeatures():void
{
if (queryLayer)
{
var queryTask:QueryTask = new QueryTask(queryLayer);
queryTask.disableClientCaching = true;
var query:Query = new Query();
query.outFields = queryFields.split(",");
query.returnGeometry = true;
query.where = queryExpr;
query.outSpatialReference = map.spatialReference;
query.geometry = map.extent;
queryTask.execute(query, new AsyncResponder(onResult, onFault));
showMessage(loadingLabel, true);
... View more
06-10-2010
02:18 PM
|
0
|
0
|
898
|
|
POST
|
Susan, In theory (not tested) it should be as simple as adding query.geometry = map.extent; to the queryFeatures function in the LiveLayerWidget.mxml
... View more
06-10-2010
01:49 PM
|
0
|
0
|
898
|
|
POST
|
Susan, As a GraphicsLayer inherits from Layer and Layer has a minScale and maxScale property a scale dependent LiveLayer is very doable.
... View more
06-10-2010
01:45 PM
|
0
|
0
|
293
|
|
POST
|
Shawn, Good to hear it I was running out of suggestions...
... View more
06-10-2010
09:46 AM
|
0
|
0
|
868
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM | |
| 1 | 03-28-2022 06:20 AM | |
| 1 | 01-30-2019 07:38 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-01-2025
05:12 AM
|