Hi Andreas, Well I knew that there was a problem with real and converted coordinates. But I tried to change my results. That causes errors whether in the setted viewBox or in displayed coordinates. It was a logical problem. Now I change my variable input first and I get the focus on selected object.
Thank you for help and your (and all other authors) great work on carto.net!!! Marcel --- In [email protected], "Andreas Neumann" <[EMAIL PROTECTED]> wrote: > > Hi Marcel, > > In the method .setNewViewBox() you have to pass real world > coordinates, not the inverted ones. The script inverts the y- > coordinates in the method .setNewViewBox(). > > Likewise in the method .showCoordinates() inverts the y-axis prior to > display in order to display coordinate values correctly. Note, > however, that the method .calcCoord() does not invert the y-axis. You > have to multiply the result of this method by -1 for the y-axis. This > method is also used internally within the map object. > > I hope this helps. Let me know if you still have problems. > > Andreas ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

