|
POST
|
Currently the Search Widget doesn't retrieve the server's symbology. Here are a couple of options you could try. 1. Use the DetailsTask to get the LayerDetails and then set the graphicsLayer.renderer to layerDetails.drawingInfo.renderer. Make sure than your getting the fields used by the renderer. http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/DetailsTask.html#getDetails() 2. Instead of adding a GraphicsLayer to the map, add a FeatureLayer and call selectFeatures() instead of queryFeatures().
... View more
01-10-2011
10:57 AM
|
0
|
0
|
1144
|
|
POST
|
What happens when you load the this url directly in your browser? http://server/proxy.php?http://66.134.213.74/WildEarth/WildCAD_NVSFC.kml
... View more
01-10-2011
10:39 AM
|
0
|
0
|
1128
|
|
POST
|
You may find this blog post helpful: http://thunderheadxpler.blogspot.com/2009/01/constraining-map-extent.html
... View more
01-10-2011
07:35 AM
|
0
|
0
|
2432
|
|
POST
|
Are your Viewer and ArcGIS Server on the same machine? If not, you'll need to add a crossdomain.xml file to the root of the ArcGIS server. It may help to post your map config too.
... View more
01-10-2011
07:30 AM
|
0
|
0
|
2514
|
|
POST
|
You could try calling queryLayer.selectFeatures() instead of queryLayer.queryFeatures(). This returns an Array of features though instead of a FeatureSet so you'd also need to make some changes to createSearchResults(). It may be easier to just set the highlight on the Graphic yourself in createSearchResults(). You'd need to add a GlowFilter to the Graphic's filters array. See: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#filters http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filters/GlowFilter.html Here's what's used in the FeatureLayer: glowFilter = new GlowFilter(); glowFilter.alpha = 0.6; glowFilter.blurX = 16; glowFilter.blurY = 16; glowFilter.inner = feature.geometry is Polygon; glowFilter.strength = 8; glowFilter.color = selectionColor;
... View more
01-09-2011
01:38 PM
|
0
|
0
|
1144
|
|
POST
|
1. You need to have the curl extension installed. See the instructions under the REQUIREMENTS section of proxy.php. 2. Yes, you'd need to have it go to the proxy. The general format is: [proxy url]?[resource url] Try: "proxy.php?http://66.134.213.74/WildEarth/WildCAD_NVSFC.kml" 3. In the proxy.php file, you need to allow it to load resources from http://66.134.213.74/ since it doesn't allow proxying to anywhere be default. Add an entry to the serverUrls array like this: array( 'url' => 'http://66.134.213.74/', 'matchAll' => true, 'token' => '' )
... View more
01-09-2011
01:04 PM
|
0
|
0
|
1128
|
|
POST
|
The easiest solution may be to put a crossdomain.xml file at http://66.134.213.74/crossdomain.xml if you have access to that. If not, than using a proxy is really the only other solution since Flash will give you this security error if the domains are not the same and the other domain does not have a crossdomain.xml file granting access to your swf's domain. Here is some proxy information along with a few different implementations: http://help.arcgis.com/en/webapi/flex/help/content/proxy.htm
... View more
01-07-2011
11:31 AM
|
0
|
0
|
1128
|
|
POST
|
Make sure this swz file is in the same folder as the index.swf file. It should be there in the Viewer zip file. Also make sure your web server will serve it.
... View more
01-06-2011
09:53 AM
|
0
|
0
|
2514
|
|
POST
|
Here's another thread on this topic: http://forums.arcgis.com/threads/19168-Canceling-an-Asynchronous-call?p=61887
... View more
01-06-2011
09:49 AM
|
0
|
0
|
1951
|
|
POST
|
Yes, the layerInfos should not change when you set the visibleLayers. Do you have a test case that demonstrates this issue? What version of the API are you using?
... View more
01-06-2011
09:46 AM
|
0
|
0
|
724
|
|
POST
|
Does it work if you run your Viewer from http:// instead of file://? e.g. http://localhost/Emergency_src/bin-debug/index.swf You can configure Flash Builder to launch it this way for you by setting the "Output folder URL" under the Project properties Flex Build Path.
... View more
01-06-2011
09:43 AM
|
0
|
0
|
1781
|
|
POST
|
Here's a sample: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=RelatedEdits See the voteImage_clickHandler() code.
... View more
01-05-2011
12:59 PM
|
0
|
0
|
1153
|
|
POST
|
This sample can also be used to explore some of the services available at http://server.arcgisonline.com: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=agol
... View more
01-05-2011
07:47 AM
|
0
|
0
|
2680
|
|
POST
|
Dasa, I used the code you posted with a point layer. I get weird results with the zoom... does the code work for a point layer or just for a polygon layer? june My sample won't work as-is with a point layer since points don't have valid extents. See this code for an example of how to set the center and scale instead: http://forums.arcgis.com/threads/20162-modify-Find-Task-Zoom-In-Results-Sample?p=65000&viewfull=1#post65000
... View more
01-04-2011
02:35 PM
|
0
|
0
|
544
|
| 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
|