...for each polyline in my mapservice - i need x,y,z values. Can I do this?
I can't get geometry property from feature layer because it returns a String value
...since new MapPoint takes only x,y...
Assuming you are using version 3.0 or later
Yes, the map points of the arrays in the polylines should have a "z" property if your feature layer supports "z".
Not sure how you are doing this, but you should be able to get the x/y/z from each feature in your feature layer.
<fx:Declarations> <esri:FeatureLayer id="road_layer" url="http://xyz/ArcGIS/rest/services/xyz/FeatureServer/0" returnZ="true"/> </fx:Declarations> //And now in Script tag I tried to read this layer details so: var layerDet:LayerDetails = road_layer.layerDetails;
This isn't true (if you are using the 3.0 API), see the http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/MapPoint.html
var mPoint:MapPoint = new MapPoint( 100, 100, new SpatialReference(102100)); mPoint.z = {some_value}; mPoint.m = {some_value};
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.