<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.secondlife.com/w/index.php?action=history&amp;feed=atom&amp;title=User%3AKerik_Rau%2FMapTileURL</id>
	<title>User:Kerik Rau/MapTileURL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.secondlife.com/w/index.php?action=history&amp;feed=atom&amp;title=User%3AKerik_Rau%2FMapTileURL"/>
	<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Kerik_Rau/MapTileURL&amp;action=history"/>
	<updated>2026-04-08T06:56:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Kerik_Rau/MapTileURL&amp;diff=201032&amp;oldid=prev</id>
		<title>Kerik Rau at 21:35, 16 January 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Kerik_Rau/MapTileURL&amp;diff=201032&amp;oldid=prev"/>
		<updated>2009-01-16T21:35:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:35, 16 January 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Returns the URL of the image of the current sim&#039;s tile &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;as in SLURL&lt;/del&gt;.  Also see [[User:Thraxis_Epsilon/map_api | Thraxis Epsilon&#039;s OpenLayers Wrapper]].   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Returns the URL of the image of the current sim&#039;s tile &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(a 256x256 pixel image)&lt;/ins&gt;.  Also see [[User:Thraxis_Epsilon/map_api | Thraxis Epsilon&#039;s OpenLayers Wrapper]].   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;lsl&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;lsl&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kerik Rau</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Kerik_Rau/MapTileURL&amp;diff=201022&amp;oldid=prev</id>
		<title>Kerik Rau: New page: Returns the URL of the image of the current sim&#039;s tile as in SLURL.  Also see  Thraxis Epsilon&#039;s OpenLayers Wrapper.    &lt;lsl&gt; string MapTileURL() {       ...</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Kerik_Rau/MapTileURL&amp;diff=201022&amp;oldid=prev"/>
		<updated>2009-01-16T21:34:29Z</updated>

		<summary type="html">&lt;p&gt;New page: Returns the URL of the image of the current sim&amp;#039;s tile as in SLURL.  Also see &lt;a href=&quot;/wiki/User:Thraxis_Epsilon/map_api&quot; title=&quot;User:Thraxis Epsilon/map api&quot;&gt; Thraxis Epsilon&amp;#039;s OpenLayers Wrapper&lt;/a&gt;.    &amp;lt;lsl&amp;gt; string MapTileURL() {       ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns the URL of the image of the current sim&amp;#039;s tile as in SLURL.  Also see [[User:Thraxis_Epsilon/map_api | Thraxis Epsilon&amp;#039;s OpenLayers Wrapper]].  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;lsl&amp;gt;&lt;br /&gt;
string MapTileURL()&lt;br /&gt;
{   &lt;br /&gt;
    vector TilePos = llGetRegionCorner();&lt;br /&gt;
 &lt;br /&gt;
    //tiles are in a grid based on the regions, so 256m = 1 tile&lt;br /&gt;
    TilePos /= 256.0;&lt;br /&gt;
    &lt;br /&gt;
    //offset provided in the javascript, really 1278 + 1 (probably 0 -&amp;gt; 1 index difference?)&lt;br /&gt;
    TilePos.y = 1279.0 - TilePos.y;&lt;br /&gt;
    &lt;br /&gt;
    //should look like http://secondlife.com/apps/mapapi/grid/map_image/x-y-zoom-0&lt;br /&gt;
    string mapURL = &amp;quot;http://secondlife.com/apps/mapapi/grid/map_image/&amp;quot;;&lt;br /&gt;
    mapURL += (string) llFloor(TilePos.x);&lt;br /&gt;
    mapURL += &amp;quot;-&amp;quot;;&lt;br /&gt;
    mapURL += (string) llFloor(TilePos.y);&lt;br /&gt;
 &lt;br /&gt;
    //the 3rd value is something to do with zoom&lt;br /&gt;
    mapURL += &amp;quot;-1-0&amp;quot;;&lt;br /&gt;
    return mapURL;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/lsl&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kerik Rau</name></author>
	</entry>
</feed>