|
POST
|
But first thing how to know the OBJECTID? QueryTask.executeForIds() From ArcGIS server REST help: returnIdsOnly: Description: If true, the response only includes an array of object IDs. Otherwise the response is a feature set. The default is false. Note that while there is a limit on the number of features included in the feature set response, there is no limit on the number of object IDs returned in the ID array response. Clients can exploit this to get all the query conforming object IDs by specifying returnIdsOnly=true and subsequently requesting feature sets for subsets of object IDs.
... View more
09-09-2012
10:30 PM
|
0
|
0
|
1174
|
|
POST
|
Extraction cussess with default windows utility. Extraction success with 7-zip utility. I can not repeat your mistake.
... View more
09-06-2012
11:16 PM
|
0
|
0
|
768
|
|
POST
|
Here is good explanation why it happens - http://www.oratable.com/rownum/ ...ROWNUM is a pseudocolumn that assigns a number to every row returned by a SQL query. It can be of great use in filtering data based on the number of rows returned by the query. ROWNUM gets its value as the query is executed, not before, and gets incremented only after the query passes the WHERE clause. Therefore, your WHERE condition can filter data based on "rownum < 2/3/4/." but not "rownum > 2/3/4.". The second filter will invariably return no rows selected. Good luck. P.S. from api reference Query -> where ... Other examples: query.where = "OBJECTID BETWEEN 1 AND 10" ... It works perfectly.
... View more
09-06-2012
11:10 PM
|
0
|
0
|
1174
|
|
POST
|
I have not found a legal way to stop/cancel the action started by Editor component. The only solution that I see - creating your own Editor componet or remove/add editor each time you prevent start editing :cool: <?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:esri="http://www.esri.com/2008/ags"
initialize="application_initializeHandler(event)">
<s:layout>
<s:HorizontalLayout/>
</s:layout>
<fx:Style>
@namespace esri "http://www.esri.com/2008/ags";
esri|Editor
{
skin-class: ClassReference("assets.skins.EditorSkin"); /* undo/redo buttons commented */
}
</fx:Style>
<fx:Script>
<![CDATA[
import com.esri.ags.components.Editor;
import com.esri.ags.events.FeatureLayerEvent;
import com.esri.ags.tasks.GeometryService;
import mx.events.FlexEvent;
private var myEditor:Editor;
private var geometryService:GeometryService = new GeometryService("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");
protected function application_initializeHandler(event:FlexEvent):void
{
myEditor = new Editor();
myEditor.map = myMap;
myEditor.featureLayers = [ points, fireAreas ];
myEditor.geometryService = geometryService;
myEditor.toolbarVisible = true;
editorHolder.addElement(myEditor);
}
protected function editsStartingHandler(event:FeatureLayerEvent):void
{
var addingDisabled:Boolean = Math.random() > 0.5;
if (event.adds && event.adds.length > 0 && addingDisabled && event.cancelable)
{
event.preventDefault();
editorHolder.removeAllElements();
myEditor = new Editor();
myEditor.map = myMap;
myEditor.featureLayers = [ points, fireAreas ];
myEditor.geometryService = geometryService;
myEditor.toolbarVisible = true;
editorHolder.addElement(myEditor);
}
}
]]>
</fx:Script>
<s:VGroup width="328" height="100%" id="editorHolder" />
<esri:Map id="myMap" wrapAround180="true">
<esri:extent>
<esri:Extent id="sheepfire"
xmin="-13144000" ymin="4033000" xmax="-13066000" ymax="4099000">
<esri:SpatialReference wkid="102100"/>
</esri:Extent>
</esri:extent>
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
<esri:FeatureLayer id="fireAreas"
editsStarting="editsStartingHandler(event)"
mode="snapshot"
outFields="*"
url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/2"/>
<esri:FeatureLayer id="points"
mode="snapshot"
editsStarting="editsStartingHandler(event)"
outFields="*"
url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0"/>
</esri:Map>
</s:Application>
... View more
09-06-2012
03:27 AM
|
0
|
0
|
2177
|
|
POST
|
By default this event is not cancelable. FeatureLayerEvent FeatureLayerEvent () Constructor public function FeatureLayerEvent(type:String, featureLayer:FeatureLayer = null, cancelable:Boolean = false) Creates a new FeatureLayerEvent. Parameters type:String â?? The event type; indicates the action that triggered the event. featureLayer:FeatureLayer (default = null) â?? Reference to the associated layer. cancelable:Boolean ( default = false) â?? Specifies whether the behavior associated with the event can be prevented. smthing like this: protected function onSmthingChange(event:SmthingChangeEvent):void
{
dispatchEvent(new FeatureLayerEvent(FeatureLayerEvent.EDITS_STARTING, myFeatureLayer, true);
}
protected function editLayerStart(event:FeatureLayerEvent):void
{
if (event.cancelable)
{
event.preventDefault();
}
else
{
// undo only
}
}
... View more
09-05-2012
05:02 AM
|
0
|
0
|
2177
|
|
POST
|
Embedding asset types (Adobe) I think, the problem is "the same asset is embedded in one place and just referenced by URL in another". Just make all assets embedded. 1 - used in 2 places + not embedded -> exists in bin-release <?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">
<s:layout>
<s:VerticalLayout />
</s:layout>
<s:Image source="assets/images/i_bookmark.png" />
<!--<s:Image source="@Embed(source='assets/images/i_bookmark.png')" />-->
<s:Button label="Bookmark"
icon="assets/images/i_bookmark.png" />
<!--<s:Button label="Bookmark"
icon="@Embed(source='assets/images/i_bookmark.png')" />-->
</s:Application> 2 - used in 2 places + embedded -> exists in bin-release <?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">
<s:layout>
<s:VerticalLayout />
</s:layout>
<!--<s:Image source="assets/images/i_bookmark.png" />-->
<s:Image source="@Embed(source='assets/images/i_bookmark.png')" />
<!--<s:Button label="Bookmark"
icon="assets/images/i_bookmark.png" />-->
<s:Button label="Bookmark"
icon="@Embed(source='assets/images/i_bookmark.png')" />
</s:Application> 3 - used in 2 places + embedded & not embedded -> NOT exists in bin-release <?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">
<s:layout>
<s:VerticalLayout />
</s:layout>
<s:Image source="assets/images/i_bookmark.png" />
<!--<s:Image source="@Embed(source='assets/images/i_bookmark.png')" />-->
<!--<s:Button label="Bookmark"
icon="assets/images/i_bookmark.png" />-->
<s:Button label="Bookmark"
icon="@Embed(source='assets/images/i_bookmark.png')" />
</s:Application> [/HR] ... for some reason the application thinks that it does not need to ... Hmm :rolleyes: Application thinks? Much simpler. Flex compiler. It does not think, but it is configurable. Advanced developers, can extend compiler using FLEX 4 Compiler API, FLEX 3 Compiler API
... View more
08-20-2012
10:17 PM
|
0
|
0
|
996
|
|
POST
|
Alex, 1 - Clustering - many graphics - 1 symbol. 2 - CompositeSymbol - many images, texts, ... in 1 symbol, with possibility to set/format each subsymbol (angle, transparency, offsets ...) (here each train symbol has 3 sub symbols circle-triangle-text) (composite symbol sample) Wael, Create own symbol extending Symbol - Sample (sources)
... View more
08-13-2012
04:33 AM
|
0
|
0
|
950
|
|
POST
|
Here (version 2.5) - bing configuration xml - live sample. or Here (version 3.0) - bind configuration xml - live sample.
... View more
08-12-2012
11:30 PM
|
0
|
0
|
1125
|
|
POST
|
For example (HTML5) - https://developers.google.com/maps/articles/geolocation - and send collected coordinates via ExternalInterface to your Flex application.
... View more
08-12-2012
11:08 PM
|
0
|
0
|
351
|
|
POST
|
Hi, 1 - the similar question, more... (use forum search) 2 - in FlashBuilder (Eclipse) you can switch SDK's downloaded from adobe developer center page. [ATTACH=CONFIG]16871[/ATTACH]
... View more
08-12-2012
10:37 PM
|
0
|
0
|
746
|
|
POST
|
Hi, are you sure that you have fulfilled all the tips listed here? Some useful links: Build Your First Flex 4.5 Application. Adobe developer center. Flex in a Week video training.
... View more
08-07-2012
02:30 AM
|
0
|
0
|
874
|
|
POST
|
Hi, 1) Map has set of Layers to be viewed. layers property layers:Object This property lets you use either an Array, an ArrayCollection, or a single Layer... Layer index in this collection is the layer location. Layer with greater index is on top of layer with smaller index. Example: Layer index=0, name='Topo' Layer index=1, name='Imagery' Layer index=2, name='Street' (the only visible to client) <?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"
xmlns:esri="http://www.esri.com/2008/ags">
<esri:Map>
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer"
name="Topo"/>
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"
name="Imagery"/>
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"
name="Street"/>
</esri:Map>
</s:Application> 2) Note that all layers extend UIComponent and thus include basic mouse events, such as: click, mouseOut, mouseOver, and mouseDown, as well as other events like show and hide, and general properties, such as alpha and visible. Example: Layer index=0, name='Topo', visible=true Layer index=1, name='Imagery', visible=true (the only visible to client) Layer index=2, name='Street', visible=false <?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"
xmlns:esri="http://www.esri.com/2008/ags">
<esri:Map>
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer"
name="Topo"/>
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"
name="Imagery"/>
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"
name="Street"
visible="false"/>
</esri:Map>
</s:Application> 3) Also layer has such property as isInScaleRange. ...Returns true if the current scale of the map is between the maximum and minimum scale of the layer... [/HR] U must collect layer information (alpha, visible, index in map layer collection ...), and compare it. The same logic when U need to find top most visible sublayer in a layer. Sample with sources.
... View more
08-06-2012
05:17 AM
|
0
|
0
|
484
|
|
POST
|
The reaction is needed when catching fleas. As a beginner I have read the documentation from ESRI, made Adobe lessons.
... View more
07-06-2012
08:28 AM
|
0
|
0
|
1253
|
|
POST
|
1 Each feature in FeatureLayer is Graphic. Each graphic has own geometry. 2 Map. You can find such public methods as centerAt(params...), zoom(params...)
... View more
06-17-2012
08:52 PM
|
0
|
0
|
421
|
|
POST
|
A lot of samples with symbols, info windows and its renderers (static, dynamic, mouse over/out/click/userthink popups) How can I display that information automatically (without user click)? based on View InfoSymbols sample <?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:esri="http://www.esri.com/2008/ags"
xmlns:s="library://ns.adobe.com/flex/spark"
pageTitle="Basic InfoSymbol example">
<!--
Basic example of an infosymbol containing a vbox with an image and a label.
The image url is read from the attributes of the graphic.
http://resources.arcgis.com/en/help/flex-api/samples/01nq/01nq0000004v000000.htm
-->
<fx:Declarations>
<esri:CompositeSymbol id="compositeSymbol">
<esri:SimpleMarkerSymbol size="30" color="0xFF0000" style="circle" />
<esri:SimpleMarkerSymbol size="15" color="0x00FF00" style="triangle" angle="30" />
<esri:InfoSymbol>
<esri:infoRenderer>
<fx:Component>
<s:DataRenderer>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<mx:Image source="{data.myImageURL}"/>
</s:DataRenderer>
</fx:Component>
</esri:infoRenderer>
</esri:InfoSymbol>
<esri:TextSymbol textAttribute="myTitle"
placement="end"
yoffset="-20"
border="true"
background="true"/>
</esri:CompositeSymbol>
</fx:Declarations>
<esri:Map openHandCursorVisible="false">
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
<esri:GraphicsLayer symbol="{compositeSymbol}">
<esri:Graphic>
<esri:geometry>
<esri:MapPoint x="11945000" y="6074000"/>
</esri:geometry>
<esri:attributes>
<fx:Object>
<fx:myImageURL>http://training.figleaf.com/images/sec_logo_flex.gif</fx:myImageURL>
<fx:myTitle>Flex</fx:myTitle>
</fx:Object>
</esri:attributes>
</esri:Graphic>
<esri:Graphic>
<esri:geometry>
<esri:MapPoint x="-7359000" y="2092000"/>
</esri:geometry>
<esri:attributes>
<fx:Object>
<fx:myImageURL>http://erevanpoker.com/bin_images/no_flash.png</fx:myImageURL>
<fx:myTitle>Flash</fx:myTitle>
</fx:Object>
</esri:attributes>
</esri:Graphic>
</esri:GraphicsLayer>
</esri:Map>
</s:Application>
... View more
06-14-2012
03:00 AM
|
0
|
0
|
944
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-03-2017 11:25 PM | |
| 1 | 10-06-2016 11:49 PM | |
| 2 | 06-07-2012 01:38 AM | |
| 1 | 06-03-2012 09:42 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|