POST
|
I checked the map services used in the code. This one below has 3 layers. http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer I still see only 1 legend. Can you provide me a screen shot of what you see?
... View more
03-13-2012
01:35 PM
|
0
|
0
|
546
|
POST
|
I ran the code you provided to me as is. Did you modify any of the code on your side?
... View more
03-13-2012
01:33 PM
|
0
|
0
|
546
|
POST
|
I can't reproduce the problem. I ran the code you provided but I always see one legend. Can you give me the steps you used to reproduce the issue?
... View more
03-13-2012
01:30 PM
|
0
|
0
|
546
|
POST
|
Can you reproduce the error using the REST page or does this happen only in your JavaScript API application?
... View more
03-13-2012
01:21 PM
|
0
|
0
|
280
|
POST
|
Have you tried breaking up the query into multiple queries? Also, do you know where in the proxy page the error is coming from?
... View more
03-13-2012
01:19 PM
|
0
|
0
|
197
|
POST
|
Here's a link that might help you. http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html#site-control "If a client is instructed to use a policy file in a location other than that of the master policy file, the client must first check the meta-policy of the master policy file to determine if the original policy file is allowed"
... View more
07-15-2011
03:15 PM
|
0
|
0
|
190
|
POST
|
You can put the find tasks in a different mxml or class file if you wish. http://livedocs.adobe.com/flex/3/html/help.html?content=02_Getting_Started__23.html Hope this helps!
... View more
07-15-2011
03:11 PM
|
0
|
0
|
157
|
POST
|
There's a completely separate API to use for Google Map: http://help.arcgis.com/en/webapi/javascript/gmaps/help/google_samplestart.htm Have you taken a look at this?
... View more
07-15-2011
02:49 PM
|
0
|
0
|
247
|
POST
|
Is this width/height of SWF issue still a bug as of version 3.2 of the Flex API? I tested with the Flex API 2.3 and can verify that the issue with the SWF not loading is no longer there. Here's the MXML that I used:
<?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" minWidth="955" minHeight="600" viewSourceURL="srcview/index.html">
<fx:Script>
<![CDATA[
import com.esri.ags.Graphic;
import com.esri.ags.events.ExtentEvent;
import com.esri.ags.events.ZoomEvent;
import com.esri.ags.geometry.MapPoint;
import com.esri.ags.symbols.PictureMarkerSymbol;
private var initRes:Number;
private var initW:int;
private var initH:int;
private var pm:PictureMarkerSymbol;
private var pmg:Graphic;
private var myGraphicMarker:Graphic;
private function cc():void
{
map.addEventListener(ExtentEvent.EXTENT_CHANGE, extentChange);
map.centerAt(new MapPoint(-72.185684,41.323083));
function extentChange(event:ExtentEvent):void
{
map.removeEventListener(ExtentEvent.EXTENT_CHANGE, extentChange);
map.addEventListener(ZoomEvent.ZOOM_END, zoomFinished);
map.addEventListener(ExtentEvent.EXTENT_CHANGE, ec);
//'assets/image_swf7.swf'
//'assets/01.png'
pm = new PictureMarkerSymbol('assets/Red_glow.swf');
pm.yoffset = 20;
//if I set this width and height initially, the SWF doesn't load
//if I don't, the width and height aren't registered with the PictureMarkerSymbol...
//so I can't probably resize and offset the SWF
//pm.height = 656;
//pm.width = 975;
pmg = new Graphic(new MapPoint(-72.185684,41.323083));
pmg.mouseEnabled = false;
pmg.mouseChildren = false;
pmg.symbol = pm;
myGraphicsLayer.add(pmg);
myGraphicMarker = new Graphic(new MapPoint(-72.185684,41.323083));
myGraphicsLayer.add(myGraphicMarker);
initRes = map.lods[map.level].resolution;
initW = 975;
initH = 656;
}
}
private function zoomFinished(event:ZoomEvent):void
{
trace("zoom finished");
pm.height = initH * 1/(map.lods[map.level].resolution/initRes);
pm.width = initW * 1/(map.lods[map.level].resolution/initRes);
pmg.height = initH * 1/(map.lods[map.level].resolution/initRes);
pmg.width = initW * 1/(map.lods[map.level].resolution/initRes);
trace(pm.height);
trace(pm.width);
//pm.xoffset = -(initW * 1/(map.lods[map.level].resolution/initRes)) / 2;
//pm.yoffset = (initH * 1/(map.lods[map.level].resolution/initRes)) / 2;
}
private function ec(event:ExtentEvent):void
{
trace("extent changed");
pm.height = initH * 1/(map.lods[map.level].resolution/initRes);
pm.width = initW * 1/(map.lods[map.level].resolution/initRes);
pmg.height = initH * 1/(map.lods[map.level].resolution/initRes);
pmg.width = initW * 1/(map.lods[map.level].resolution/initRes);
trace(pm.height);
trace(pm.width);
}
]]>
</fx:Script>
<esri:Map id="map" level="7" load="cc()" >
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" />
<esri:GraphicsLayer id="myGraphicsLayer" />
</esri:Map>
</s:Application>
... View more
06-21-2011
11:28 AM
|
0
|
0
|
498
|
POST
|
The FeatureDataForm takes a Graphic object as the GraphicSource: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client.Toolkit~ESRI.ArcGIS.Client.Toolkit.FeatureDataForm~GraphicSource.html In the sample below: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataForm The MyFeatureDataForm.GraphicSource is populated by the mouse up event. You can perform a regular query and get the graphics back from the results and pass that to the FeatureDataForm::GraphicSource Hope this helps!
... View more
04-29-2011
03:07 PM
|
0
|
0
|
297
|
POST
|
This thread might help: http://forums.esri.com/Thread.asp?c=158&f=2396&t=259007&mc=7
... View more
04-29-2011
02:25 PM
|
0
|
0
|
286
|
POST
|
This posting might help: http://forums.esri.com/Thread.asp?c=158&f=2396&t=259007&mc=7 Here's a video that may help too: http://resources.arcgis.com/gallery/video/arcgis-api-for-javascript/details?entryID=AD42C89C-1422-2418-7F98-F2AA5F27FD2D
... View more
04-29-2011
02:23 PM
|
0
|
0
|
148
|
POST
|
Can you explain what you want to do? Do you want to get the results of a query and show the geometry as a different color? You can set the symbology of the graphic and use a different color being adding the graphic to the graphicslayer. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/graphic.htm#setSymbol
... View more
04-29-2011
02:09 PM
|
0
|
0
|
155
|
POST
|
You will have to narrow down possible causes of the problem. Does it happen during high usage? Are all the users using the same browser? Does the problem occur right when you finish drawing the polygon or does it happen after you send the polygon to the python script? (is this really a GPTool that you passing the polygon to?) I don't think the issue is with the coding since the problem happens intermittently. I would take a look at all the different system configuration that the users have. If you are using a GPTool, then see if you can reproduce the problem using the GPTool alone in ArcMap. I hope this helps!
... View more
04-29-2011
02:04 PM
|
0
|
0
|
214
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|