Jump to content

Using Grid Regions and Grid Coordinates to find locations on the Map


BindiZebra
 Share

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

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

Recommended Posts

Hello.  does anyone know if there is a way to find locations on my World Map (I am using the Firestorm viewer if that makes a difference) using the Grid Region or the Grid Coordinates (rather than using sim or Region names and coordinates)?  Or is there another way to find them instead of the World Map?  Any information that you can provide would be appreciated.  Perhaps a better way of asking this question is if I know the Grid Region and/or the Grid Coordinates but not the name of the sim is there a way to find that location on the map?

Thanks,

Bindi

Link to comment
Share on other sites

So if it's really about locating a point in the viewer Map, you can leverage the fact that the Map will use a position relative to the current region, even if that offset is huge or hugely negative. Quick and dirty script might look something like:

integer handle;

default
{
    touch_start(integer total_number)
    {
        llListenRemove(handle); // in case never replied (no timeout)
        integer chan = -1000000000 - (integer)llFrand(1000000000.0);
        key toucher = llDetectedKey(0);
        handle = llListen(chan, "", toucher, "");
        llTextBox(toucher, "Enter grid X, Y coordinates, a la \"262442, 245552\"", chan);
    }
    listen(integer channel, string name, key id, string text)
    {
        llListenRemove(handle);
        llMapDestination(llGetRegionName(), (vector)("<"+text+", 0.0>")-llGetRegionCorner(), ZERO_VECTOR);
    }
}

If you actually want to know the name of the region and follow proper Map API protocol, you can start with the "Region name from global coordinates" utility URL.

Link to comment
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...