llGetRegionWorldMapTile
tracked
Crush Cutie
key llGetRegionWorldMapTile(string region_name)
A LSL function to return the UUID of the current world map tile for a named region, so that it might be placed on a face using PRIM_TEXTURE.
This could also be added to llRequestSimulatorData
Currently the only ways I know to accomplish this depend on MOAP and voodoo to get an image from slurl.com, or pulling the CDN UUID from gridsurvey.com via a HTTPRequest.
Which all seems pretty hacky and unfun.
Log In
Nyx Onyx
If at all possible, I'd love if it could zoom down to the level of centering a parcel on the map, if you provide such a parameter. =) Perhaps it can be done by having the function not return a UUID, but a list -with- the UUID and parameters needed for zooming in on a given parcel.
Atomic Infinity
It would be good if it followed the current map texture API format so maybe its a string of the map texture UUID :
string llMapTexture(integer zoom, integer region_x, integer region_y);
This adds the full range of zoom levels that the in-world map already uses, and also it would be really compatible for updating stuff people already did with MOAP in the hacky and unfun way :D
Paul Hexem
Speaking as someone that keeps having to update products due to external servers changing, this really should be a native thing in SL and not rely on third parties. Especially because the data is already on the servers- there's no reason not to expose it to LSL.
Extrude Ragu
It would be nice to have the ability to get the tile uuid by grid coordinate - ie so you don't have to look up the name of the neighboring region to display its map tile, which is an additional api call.
Spidey Linden
Merged in a post:
Add method to get map UUIDs
Jenni Darkwatch
Currently there's only external services if one wants to have map UUIDs in SL, or use MoaP which not everyone has enabled.
Getting those UUIDs is useful e.g. for live navigation maps or live region maps would be very useful.
I'd propose to either extend llGetEnv() with two flags map_terrain and map_objects or extend llRequestSimulatorData() with DATA_SIM_MAP_TERRAIN and DATA_SIM_MAP_OBJECTS, depending on where that data would be easier fetchable for the sim.
Vincent Nacon
Need to be able to get the texture by grid coordinate instead of just by the string name.
Cutie Crush
See also https://feedback.secondlife.com/scripting-features/p/llgetregionworldmaptile which is marked
TRACKED
Vincent Nacon
I'd like to use grid coordinate instead of going by the sim name, so I can develop a map system based on using the current sim as a reference point.
Both reference options would be good to have.
Cutie Crush
Vincent Nacon Of course you can also use LSL to get the name of the region before issuing the request.
Nelson Jenkins
Cutie Crush Only if you are in the same region. Being able to do this via coordinates is necessary if you want to plot out a map for other adjacent regions whose names you don't know.
Qie Niangao
Nelson Jenkins The MapAPI already provides for fetching the region name from its global coordinates, https://wiki.secondlife.com/wiki/Linden_Lab_Official:Map_API_Reference#Region_name_from_global_coordinates (and vice versa, so either way seems fine)
Nelson Jenkins
Qie Niangao Why waste one or more llHTTPRequest calls (getting immediately adjacent region names would take 4, getting corners would take 8, mapping out a large area would be throttled to ~1 region per second as a result) when this could be done in LSL? If we're already requesting a new function and all. I don't see why using a name would take precedence over coordinates anyway. The server already stores the images by grid coordinates and grid coordinates can be obtained instantly without throttling using llGetRegionCorner.
TavishBrock Resident
This doesn't even need to be an LSL feature. The map tile JPEGs are already available on the web (http://maps-cdn.agni.lindenlab.com/map-1-1000-1000-objects.jpg); all that would have to happen is to have the tile UUIDs in the same location in a text file (http://maps-cdn.agni.lindenlab.com/map-1-1000-1000-objects.txt).
(Not that I'd object to an LSL function, but if giving us the UUIDs via a simple web request is something that's trivially implemented then I would be very happy with that)
Mark Nova
Yes please! This is what I had been hoping for as my region maps keep getting broken :(
Load More
→