AnsweredAssumed Answered

How to determine current XY of Map's Center?

Question asked by ehinkle on Jan 4, 2013
Latest reply on Jan 4, 2013 by ehinkle
Hi,

I've read extensively through the API and various resources. I've done some great and unordinary things with the API but I can't seem to figure out how to detect the center of the map. The reason is I need to be able to resize the map and keep the center of the map as the center of the map despite the resizes and changes.

Currently when I resize the map, it adds more map space or remove map space on the size that is resized. I know I can use .centerAt() to center the map, however I need the X, Y from the current map center before the resize so I can re-center after the resize.

Thanks!

Eddie

Outcomes