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

--- In [email protected], "Marcel" <[EMAIL PROTECTED]> 
wrote:
>
> Hello,
> 
> maybe someone can help me?
> 
> I am using the example from carto.net as the basic for my tries.
> I want to recenter the map and zoom in at a random point.
> 
> I tried to use the 
> "myMainMap.setNewViewBox(xmin,ymin,xmax,ymax,history)"
> method.
> 
> The results of xmin and xmax are fine.
> The Ymin and ymax results are negative(-). Later they get 
multiplied 
> with (-1) so that my new viewbox isn't in the map area.
> 
> If I try to handle the results I get negative results for 
coordinate 
> display on the side.
> 
> Is there another method or function I have to use.
> 
> Thanks for your help!
> 
> Marcel
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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/
 


Reply via email to