This is a page devoted to
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
function gotoSLPoint(simname, x, y)
var foo = new SLPoint(simname,x,y);
return gotoSLURL(foo.x, foo.y);
Then use it thus: