Get your own customer support community
 

Adding markers in Flex

I'm working with the Subversion Trunk (r 719) and Flex 3 / AS3, trying to implement markers on a custom map. My markers aren't showing up, though. If I trace out the coordinate of the marker, it claims to be at position (0,-0.05) (that's absolute x,y coordinates, not Lat/Long).

I've looked through the Flex resources here and some of the answers are very old, others I can almost make sense out of.

So what should I be thinking about for attaching markers to a map in Flex? It doesn't appear to be as simple as:


var tmarker:MapMarker = new MapMarker();
tmarker.name="marker01";
campusMap.map.putMarker(new Location(1.2,1.99),tmarker);
trace(":::" + " " + tmarker.x + "," + tmarker.y);


(MapMarker is my own component, based on mx:Button)
 
silly I’m puzzled.
Inappropriate?
2 people have this question

User_default_medium