Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to get the center SL coordinates for using WebMap API

Xiaonan Aeon
Registered User
Join date: 10 Apr 2008
Posts: 10
06-12-2008 02:05
I am trying to use the Webmap API to creat a map of our land.

The coordinates I got was someting like : <16.03091, 153.24162, 24.18218>. How to use it in the API or I need to conver the coordinates.


Thanks
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
06-12-2008 08:30
You have to add in the global coordinate position of the region, i.e.:

global_position = llGetRegionCorner() + my_local_position; // where my_local_position is llGetPos() or equivalent