Jump to content

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

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?



Link to post
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;

    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)
        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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...