Hi Darmawan, You're on the right track.
I am guessing that you are calling the getScaleX() method before the map pane has been displayed for the first time. The world to screen transform (an AffineTransform object) is not created until the pane is displayed. (Actually, your question makes me think it might be better to change JMapPane so that the transform is created as soon as the map pane has its size set and is connected to a map context with layers). Michael ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users