Hi Seppo,
By "layer coordinates", do you mean the data value that is used to draw the layer, or do
you mean the pixel coordinates of the layer?
For the data value used to draw the layer, the data value is supplied by your code, and
ChartDirector does not keep track of the value, and there is no API to return the value back
to your code. So your code would need to store and keep track of the value itself.
For the pixel coordinates of a layer, note that a layer is not a single point, but a complex
shape, I have attached a pyramid for your reference. If you would like to obtain the outline
of the layer shape, one method is to obtain an image map using getHTMLImageMap, and the
parse the image map to obtain the coordinates. The image map is in standard HTML <area>
tags and should not be difficult to parse.
Regards
Peter Kwan
|