This is a page devoted to
http://secondlife.com/developers/mapapi/
The Map API for Second Life.
First tip: This was driving me nuts: Coordinate system. The one used in the Map API is just the Global coordinates divided by 256.
Hope this helps.
How to use Sim Names to make teleport link:
Put this in your header, after the code for the map api
<script type="text/javascript">
function gotoSLPoint(simname, x, y)
{
var foo = new SLPoint(simname,x,y);
return gotoSLURL(foo.x, foo.y);
}
</script>
Then use it thus:
<a href="javascript:gotoSLPoint('Ahern', 128, 128)">Goto Ahern</a>