Jump to content

Question reqarding maps


XbabylonX
 Share

You are about to reply to a thread that has been inactive for 3736 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hello,

I was reading the following article

http://wiki.secondlife.com/wiki/Linden_Lab_Official:Map_API_Introduction

and at the "Accesing map images directly" paragraph, provides an example:

X,Y - X and Y coordinates on the Second Life Grid of the region, for example, region Ahern is (997,1002).

Says Ahern coordinates are 997-1002. I dont know how one can get these numbers for any sim.

Some lights please?

 

PS Im sorry if this is not the correct forum to post it!

Link to comment
Share on other sites

Right, or if you just need those coordinates for a specific sim (not in LSL), can call the cap with a URL like this:

https://cap.secondlife.com/cap/0/d661249b-2b5a-4436-966a-3d3b8d7a574f?var=coords&sim_name=Ahern

as documented on the Map API Reference page. (The "opposite" cap was broken for a long, long time, but they both seem to work again at the moment.)

Also, a minor detail about using LSL to find the map grid coordinates of a region: those are actually the global coordinates of the region's corner divided by 256 -- that is, llGetRegionCorner() and llRequestSimulatorData() return global coordinates in 1-meter units, and the map grid uses global coordinates in one-region units.

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3736 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...