|
POST
|
This sample also uses the decode method: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=ReadURL
... View more
07-16-2010
11:12 AM
|
0
|
0
|
525
|
|
POST
|
Of these three, "layer order, or symbology, or definition query changing", only changing the layer definition is supported. Reference: http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/ArcGISDynamicMapServiceLayer.html#layerDefinitions You could possibly workaround layer order issues by using multiple ArcGISDynamicMapServiceLayers and controlling the visibleLayers in each one.
... View more
07-14-2010
10:45 AM
|
0
|
0
|
330
|
|
POST
|
Here's a good blog post on this subject: http://blogagic.com/163/flex-memory-management-and-memory-leaks
... View more
07-14-2010
10:39 AM
|
0
|
0
|
505
|
|
POST
|
All tasks inherit disableClientCaching from the BaseTask: http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/BaseTask.html#disableClientCaching
... View more
07-14-2010
10:32 AM
|
0
|
0
|
320
|
|
POST
|
This isn't possible with a single ArcGISDynamicMapServiceLayer, but you could create a separate ArcGISDynamicMapServiceLayer for each layer and then set alpha on each one.
... View more
07-14-2010
10:26 AM
|
0
|
0
|
371
|
|
POST
|
Yes, the VE classes have no dependencies on ArcGIS Server.
... View more
07-14-2010
10:20 AM
|
0
|
0
|
584
|
|
POST
|
You'll need to use the 1.x name: http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/com/esri/ags/toolbars/Navigation.html
... View more
07-12-2010
03:17 PM
|
0
|
0
|
523
|
|
POST
|
It would require a code change. I've updated the NavigationTools.mxml sample to show how it can be done. See the myMap_mapClickHandler function.
<?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"
pageTitle="Using the navigation tools">
<fx:Script>
<![CDATA[
import com.esri.ags.events.MapMouseEvent;
import com.esri.ags.tools.NavigationTool;
import mx.logging.LogEventLevel;
import spark.events.IndexChangeEvent;
private function tbb_changeHandler(event:IndexChangeEvent):void
{
switch (tbb.selectedItem)
{
case "Zoom In":
{
navTool.activate(NavigationTool.ZOOM_IN);
break;
}
case "Zoom Out":
{
navTool.activate(NavigationTool.ZOOM_OUT);
break;
}
case "Pan":
{
navTool.activate(NavigationTool.PAN);
break;
}
default:
{
navTool.deactivate();
break;
}
}
}
protected function myMap_mapClickHandler(event:MapMouseEvent):void
{
if (tbb.selectedItem == "Zoom Out")
{
myMap.centerAt(event.mapPoint);
myMap.zoomOut();
}
}
]]>
</fx:Script>
<fx:Declarations>
<esri:NavigationTool id="navTool" map="{myMap}"/>
<mx:TraceTarget includeCategory="true"
includeLevel="true"
includeTime="true"
level="{LogEventLevel.DEBUG}"/>
<!-- The output from TraceTarget is available when debugging this sample in Flash Builder -->
</fx:Declarations>
<s:controlBarLayout>
<s:HorizontalLayout gap="10"
horizontalAlign="center"
paddingBottom="7"
paddingLeft="10"
paddingRight="10"
paddingTop="7"/>
</s:controlBarLayout>
<s:controlBarContent>
<s:ButtonBar id="tbb" change="tbb_changeHandler(event)">
<s:ArrayList>
<fx:String>Zoom In</fx:String>
<fx:String>Zoom Out</fx:String>
<fx:String>Pan</fx:String>
</s:ArrayList>
</s:ButtonBar>
<s:HGroup gap="0">
<s:Button click="navTool.zoomToPrevExtent()"
enabled="{!navTool.isFirstExtent}"
label="Previous Extent"/>
<s:Button click="navTool.zoomToNextExtent()"
enabled="{!navTool.isLastExtent}"
label="Next Extent"/>
</s:HGroup>
<s:Button click="navTool.zoomToFullExtent()" label="Full Extent"/>
</s:controlBarContent>
<esri:Map id="myMap" mapClick="myMap_mapClickHandler(event)">
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
</esri:Map>
</s:Application>
... View more
07-12-2010
10:38 AM
|
0
|
0
|
523
|
|
POST
|
OK, try this:
protected function showMarker():void
{
const mapPoint:MapPoint = new MapPoint(-71.56, 45.33);
const latlong:MapPoint = WebMercatorUtil.geographicToWebMercator(mapPoint) as MapPoint;
var myGraphicMarker:Graphic = new Graphic(latlong,
new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_DIAMOND, 22, 0x009933));
myGraphicMarker.toolTip = "Marker added with ActionScript";
repeaterLayer.add(myGraphicMarker);
myMap.centerAt(myGraphicMarker.geometry as MapPoint);
}
... View more
07-12-2010
08:08 AM
|
0
|
0
|
325
|
|
POST
|
Here's another sample: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=ReadURL
... View more
07-12-2010
07:51 AM
|
0
|
0
|
1048
|
|
POST
|
Your x and y values should match the Map's spatial reference. If your map is in Web Mercator and you want to use lat/long values and you can use this utility to convert the values: http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/utils/WebMercatorUtil.html#geographicToWebMercator()
... View more
07-12-2010
07:36 AM
|
0
|
0
|
1048
|
|
POST
|
OK, thanks for the heads up. You might have better luck with setting the wmode to "transparent" which also fixes the cursor issue.
... View more
07-09-2010
11:14 AM
|
0
|
0
|
1199
|
|
POST
|
You can set: requireSelection="true" e.g.
<s:ButtonBar id="bb"
right="5" top="5"
requireSelection="true">
<s:dataProvider>
<s:ArrayList>
<fx:String>Streets</fx:String>
<fx:String>U.S. Topo</fx:String>
<fx:String>Imagery</fx:String>
</s:ArrayList>
</s:dataProvider>
</s:ButtonBar>
Reference: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/supportClasses/ListBase.html#requireSelection
... View more
07-09-2010
10:39 AM
|
0
|
0
|
428
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-06-2017 01:13 PM | |
| 2 | 03-06-2017 02:12 PM | |
| 1 | 06-22-2010 12:01 PM | |
| 1 | 08-06-2012 09:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-15-2025
04:18 PM
|