<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://thelongdark.darksciencelabs.com/index.php?action=history&amp;feed=atom&amp;title=User%3AWarrot%2Fcommon.js</id>
	<title>User:Warrot/common.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://thelongdark.darksciencelabs.com/index.php?action=history&amp;feed=atom&amp;title=User%3AWarrot%2Fcommon.js"/>
	<link rel="alternate" type="text/html" href="https://thelongdark.darksciencelabs.com/index.php?title=User:Warrot/common.js&amp;action=history"/>
	<updated>2026-04-25T02:32:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://thelongdark.darksciencelabs.com/index.php?title=User:Warrot/common.js&amp;diff=8575&amp;oldid=prev</id>
		<title>imported&gt;Warrot at 13:45, 21 January 2019</title>
		<link rel="alternate" type="text/html" href="https://thelongdark.darksciencelabs.com/index.php?title=User:Warrot/common.js&amp;diff=8575&amp;oldid=prev"/>
		<updated>2019-01-21T13:45:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;	var StoneCairn = L.icon({ //Adding the StoneCairn icon&lt;br /&gt;
    iconUrl: &amp;#039;StoneCairn.png&amp;#039;, &lt;br /&gt;
&lt;br /&gt;
    iconSize:     [22, 30], // size of the icon&lt;br /&gt;
    iconAnchor:   [11, 15], // point of the icon which will correspond to marker&amp;#039;s location&lt;br /&gt;
    popupAnchor:  [0, -15] // point from which the popup should open relative to the iconAnchor&lt;br /&gt;
	});&lt;br /&gt;
&lt;br /&gt;
	var map = L.map(&amp;#039;map&amp;#039;, {&lt;br /&gt;
		crs: L.CRS.Simple,&lt;br /&gt;
		minZoom: -3&lt;br /&gt;
	});&lt;br /&gt;
&lt;br /&gt;
	var yx = L.latLng;&lt;br /&gt;
&lt;br /&gt;
	var xy = function(x, y) {&lt;br /&gt;
		if (L.Util.isArray(x)) {    &lt;br /&gt;
			return yx(x[1], x[0]);&lt;br /&gt;
		}&lt;br /&gt;
		return yx(y, x);  &lt;br /&gt;
	};&lt;br /&gt;
&lt;br /&gt;
	var bounds = [xy(0, 0), xy(2048, 2048)]; //set image size &lt;br /&gt;
	var image = L.imageOverlay(&amp;#039;PleasantValley.png&amp;#039;, bounds).addTo(map); //map.jpg is the map file&lt;br /&gt;
&lt;br /&gt;
	//Add market to map, coords in first parenthesis&lt;br /&gt;
	L.marker([1200, 1200], {icon: StoneCairn}).addTo(map).bindPopup(L.popup({minWidth:300, maxWidth:300}).setContent( //Info for marker&lt;br /&gt;
		&amp;#039;&amp;lt;img src=&amp;quot;C18.jpg&amp;quot; alt=&amp;quot;&amp;quot; width=&amp;quot;300&amp;quot; height=&amp;quot;169&amp;quot;&amp;gt;&amp;#039;+ //Img file&lt;br /&gt;
		&amp;#039;&amp;lt;h1&amp;gt;#18 - ALEX &amp;quot;DANDA&amp;quot; VALERO&amp;lt;/h1&amp;gt; &amp;lt;h3&amp;gt;&amp;#039;+ //Number and author&lt;br /&gt;
		&amp;#039;&amp;lt;em&amp;gt;&amp;quot;I promised her wed build our house here&amp;quot;.&amp;lt;/em&amp;gt;&amp;#039;+ //Flavor text&lt;br /&gt;
		&amp;#039;&amp;lt;/h3&amp;gt; On a small stone next to the river&amp;#039;)); //Directions to loadtion&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	//Alternative method of pins&lt;br /&gt;
		//Location &lt;br /&gt;
	var Javin = xy(1000, 1000);&lt;br /&gt;
		//Info&lt;br /&gt;
	var one = L.popup({minWidth:300, maxWidth:300}).setContent(&amp;#039;&amp;lt;img src=&amp;quot;StoneCairn.png&amp;quot; alt=&amp;quot;&amp;quot; width=&amp;quot;200&amp;quot; height=&amp;quot;200&amp;quot; style=&amp;quot;float:left;&amp;quot;&amp;gt; &amp;lt;h1&amp;gt;#999&amp;lt;/h1&amp;gt; &amp;lt;/br&amp;gt; &amp;lt;h2&amp;gt;AUTHOR&amp;lt;/h2&amp;gt; &amp;lt;/br&amp;gt;&amp;lt;h5&amp;gt;&amp;lt;em&amp;gt;DESCRIPTION&amp;lt;/em&amp;gt;&amp;lt;/h5&amp;gt; &amp;lt;/br&amp;gt; LOCATION&amp;#039;);&lt;br /&gt;
		//Attach to map&lt;br /&gt;
	L.marker(Javin, {icon: StoneCairn}).addTo(map).bindPopup(one);&lt;br /&gt;
&lt;br /&gt;
	//Template for line between coords&lt;br /&gt;
	//var travel = L.polyline([A, B]).addTo(map);&lt;br /&gt;
&lt;br /&gt;
	map.setView(xy(1024, 1024), 0.1); //start koordinater&lt;/div&gt;</summary>
		<author><name>imported&gt;Warrot</name></author>
	</entry>
</feed>