POST
|
Has anyone gotten the new initial extent to work in 2.3? I find that when a new map is loaded with a base map from ArcGIS Online, I get the spatial reference from the base map, regardless of what is in the initial extent. If I set the exent for the map manually (the old way), then it works as expected.
... View more
04-26-2011
12:16 PM
|
0
|
2
|
694
|
POST
|
This can't possibly be a limitation of Flex Builder can it? I was having no problem until I got a new computer and installed the latest Flex Builder and imported my project. Now I have no design mode for the project. I do get design mode if I create a new project. Has anyone else seen this issue? I need help!
... View more
04-14-2011
02:58 PM
|
0
|
0
|
1607
|
POST
|
I'm sorry. I'm new to Javascript and I was using the For...in construction incorrectly. I was not properly referring to the individual layerInfos. I got it working. Sorry about that.
... View more
01-24-2011
09:50 AM
|
0
|
0
|
258
|
POST
|
When I get the layerInfos object from an ArcGISDynamicMapServiceLayer after it is loaded, I get an array of the correct number of LayerInfo objects, but each property of each LayerInfo object is undefined. Can anybody help me to figure out why that is?
... View more
01-24-2011
09:43 AM
|
0
|
1
|
2020
|
POST
|
I've wondered the same thing. Are there some experts or designers that have some input? My understanding of the difference between FeatureLayer and a DynamicMapServiceLayer is that the DMSL pulls in all the features (layers) within a map service and the FL only deals with one layer. The FeatureLayer gives you much more control over the display of the graphics as well as giving you access to editing of features.
... View more
12-23-2010
10:36 AM
|
0
|
0
|
504
|
POST
|
Thanks for your response lowgas! The link you posted points to the editor widget. Since I'm not editing anything, I don't think this is what I'm looking for. Should I not be using a feature layer if I'm not doing selection/editing? If you have any more ideas about how to change the look of individual graphics in a feature layer based on their attributes, please let me know. Otherwise, I will probably have to use the ClassBreaksRenderer and choose some arbitrary breaks. The other question I had was if it were possible to create a custom symbol. Does anybody have any ideas or suggestions?
... View more
12-16-2010
11:44 AM
|
0
|
0
|
584
|
POST
|
I want to render features using something similar to the ClassBreaksRenderer, but instead of discrete breaks, I want a smoothly sliding scale. I accomplished this in the Flex API by creating a custom Symbol which had a different color based on an attribute value. I'm brand new to the javascript API, (and not too experienced with Javascript in general -- I come from a Java background), and I'd like to know how to do something similar with Javascript. Is this possible? I've been told that Javascript is classless, so I'm not clear on what the objects (Layer,Symbol,etc) really are. Any help would be greatly appreciated!
... View more
12-14-2010
11:50 AM
|
0
|
3
|
991
|
POST
|
While I don't know enough about scope in Flex to know if this will work from your external buttons.mxml, I think I would use: myMap.addEventListener(MapMouseEvent.MAP_CLICK,mapClickHandler); Then you could put the reverse in the clickHandler for one of the other buttons: myMap.removeEventListener(MapMouseEvent.MAP_CLICK,mapClickHandler);
... View more
11-10-2010
01:05 PM
|
0
|
0
|
734
|
POST
|
Thanks dpaddock! I didn't realize that polygons naturally supported multiple disjoint shapes. I didn't understand what the rings were. I added each ring from my selected polygons to a "master" polygon and used that as the geometry for the query! This is exactly what I was looking for. Thanks so much!
... View more
11-10-2010
10:44 AM
|
0
|
0
|
433
|
POST
|
Thanks for the reply, dpaddock! Because of the simplicity of selecting, I thought it would be the answer to my dillema, but perhaps it isn't. Is it possible to get the union of Polygons? It looks like there is a union function for Extents, but since it returns an Extent, I assume it just returns the bounding box that contains both Extents, (which would include a lot more area than I want). I was really hoping to use the geometry of disconnected polys in a query. Is this even possible?
... View more
11-10-2010
08:57 AM
|
0
|
0
|
433
|
POST
|
I'm trying to use the FeatureLayer.selectedFeatures to run a query, but I don't know how to get the geometry. So, my questions are multiple: What are the selectedFeatures supposed to be used for anyway? Can I get the geometry from selected features? Is there a way to get the geometry from multiple polygons? Thanks so much!
... View more
11-09-2010
02:44 PM
|
0
|
4
|
787
|
POST
|
I really need to see a map that displays the entire Pacific Ocean, but all the map services I find are cut off partway through. Does anybody know how to stitch the map together so that it either wraps or so that the map is split at zero longitude? Thanks!
... View more
11-04-2010
12:04 PM
|
0
|
1
|
706
|
POST
|
if you're not using ArcGIS 10, then the symbology from the map service isn't used. You can set a default symbol by using the symbol attribute of the FeatureLayer, or you can use a custom Renderer to set different symbols for different attribute values (similar to Categories, Quantities, etc in ArcMap). Here are some examples. The second one is straight from http://help.arcgis.com/en/webapi/flex/samples/index.html
<esri:FeatureLayer id="featureLayer"
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0" }">
<esri:symbol>
<esri:SimpleMarkerSymbol color="0xFFFFFF" alpha="0.8" size="10" style="diamond">
<esri:outline>
<esri:SimpleLineSymbol color="0xFF0000" style="dash" />
</esri:outline>
</esri:SimpleMarkerSymbol>
</esri:symbol>
</esri:FeatureLayer>
<esri:FeatureLayer outFields="[FIPS,POP2000]"
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0">
<esri:renderer>
<esri:ClassBreaksRenderer attribute="POP2000">
<esri:ClassBreakInfo maxValue="61" symbol="{symbol1}"/>
<esri:ClassBreakInfo maxValue="264"
minValue="62"
symbol="{symbol2}"/>
<esri:ClassBreakInfo maxValue="759"
minValue="265"
symbol="{symbol3}"/>
<esri:ClassBreakInfo maxValue="1900"
minValue="760"
symbol="{symbol4}"/>
<esri:ClassBreakInfo minValue="1901" symbol="{symbol5}"/>
</esri:ClassBreaksRenderer>
</esri:renderer>
</esri:FeatureLayer>
... View more
11-04-2010
11:57 AM
|
0
|
0
|
283
|
POST
|
You could also set mouseChildren to false on the Graphic. Thanks for your response. I was trying to set mouseChildren on the Graphic, but I couldn't get access to it, since the graphicAdd event was never fired. I don't know why this is. The GraphicsLayer's dataProvider is a QueryTask, and when the query returns, the graphics get updated, but no graphicAdd events.
... View more
11-01-2010
01:54 PM
|
0
|
0
|
600
|
Title | Kudos | Posted |
---|---|---|
1 | 10-27-2016 01:41 AM | |
1 | 05-12-2015 11:58 AM | |
1 | 08-22-2017 11:48 AM | |
1 | 11-21-2016 10:43 AM | |
1 | 10-25-2016 11:43 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|