POST
|
This helps, but it seems now I can add either a symbol (SimpleMarkerSymbol) or a TextSymbol, but not both. What I need is a labeled symbol. Do I need to add both as separate entities?
... View more
10-22-2012
01:07 PM
|
0
|
0
|
323
|
POST
|
Ok, I hate to ask this question because it seems the answer should be quite clear, but it isn't (to me anyway). Classic ESRI--document a class in extreme detail but leave out possibly the most critical part. In this case, I need to know how, in ActionScript, to place a text symbol on a map next to a graphic symbol that I have just added. Again, the documentation seems to spell out every property and method associated with TextSymbol, but fails to explain how to get it on the map. Can anyone point me to a resource that explains how to place a TextSymbol on a map or layer? Thanks!
... View more
10-22-2012
09:50 AM
|
0
|
6
|
632
|
POST
|
I need to place a symbol on a map at a specified Lat/Lon coordinate. For testing purposes, I am executing my method from a mouse click anywhere on the map. I have hard coded the coordinate values and am using the following spatial reference <esri:SpatialReference id="wgs" wkid="4326"/> When the method is executed, the symbol appears at 0,0 on the map and seems to disregard the coordinates passed in. My GraphicsLayer is grLayer. What am I doing wrong? Thanks! private function onMapClick(event:MapMouseEvent):void{ var coordstring:String = "38.0594, 81.1121"; var coords:Array = coordstring.split(","); var g:Graphic = new Graphic(new MapPoint(coords[0],coords[1],wgs)); grLayer.add(g); //Alert.show("Mouse clicked at: " + event.mapPoint.x + "|" + event.mapPoint.y); }
... View more
10-22-2012
07:21 AM
|
0
|
3
|
390
|
POST
|
Thanks for the reply Anthony! Unfortunately something else is wrong. When I pass in the coordinates directly to the graphic variable, var g:Graphic = new Graphic(); g.geometry = new MapPoint(38.0594, 81.1121, wgs); the graphic appears but is placed at 0,0 rather than at the specified coordinates. Any idea why this is happening? Thanks!
... View more
10-22-2012
06:25 AM
|
0
|
0
|
360
|
POST
|
I am new to the Flex API but not new to GIS programming. I have a message service that will be reporting locations via Lat/Lon and I will need to locate a simple graphic on the map specified by the incoming location coordinates. It seems like this should be really simple. I have created a simple click event for testing. The points show up at the correct locations, but how do I get them to be represented by lat/lon coordinates? Obviously, the end goal is not to be using mouse clicks to determine locations. Thanks! <esri:SpatialReference id="wgs" wkid="4326"/> private function onMapClick(event:MapMouseEvent):void{ var g:Graphic = new Graphic(); //g.geometry = new MapPoint(38.0594, 81.1121, wgs); //event.mapPoint; g.geometry = event.mapPoint; grLayer.add(g); Alert.show("Mouse clicked at: " + event.mapPoint.x + "|" + event.mapPoint.y); }
... View more
10-21-2012
07:51 AM
|
0
|
16
|
1017
|
POST
|
I hope this is the appropriate forum in which to post this question. I am conducting research into the best available methods for collecting data bathymetric data for a medium sized lake. The study should show cost/benefit analysis of the various methods. Can anyone provide any insight or point me in the right direction? Thanks!
... View more
08-11-2011
06:44 AM
|
0
|
0
|
440
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|