toScreenX and toScreenY delivers always the same value for the marker on the map, even when I pan the map

2815
4
09-11-2014 07:14 AM
MarcusFritze
New Contributor

I think there is a bug. When I use toScreenX and toScreenY in my custom MarkerSymbol I always get the marker position on the screen when the map is in default extent. (the center of the map)

I use this to show a InfoWindow on top of my Marker, when I click the marker. (Like google maps, this functionality is missing here in ArcGIS Flex).

When I pan the map, the InfoWindow opens on the "old marker start position on the screen" and not over the new marker position.

If source code is required, I can attach source code.

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

Marcus,

   It is hard to determine if you are using the function properly in your code based on your description. You should post your code.

0 Kudos
MarcusFritze
New Contributor

I have no idea how to attach files to this issue. So I uploaded 2 files to "Documents".

CustomSymbol.mxml

GoogleMarkerSymbol.as

Thank you for your quick response!

0 Kudos
MarcusFritze
New Contributor

And here is the swf

CustomSymbol.swf

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Marcus,

   I am having some issue with getting the correct wraparound screen coordinates as well, so I have a question into the Flex Dev team lead right now and I will let you know the status.

Robert

0 Kudos