Add marker

gh-pages
rubenwardy 2019-03-04 16:42:05 +00:00
parent ad941e9411
commit 403a15cbfb
11 changed files with 7 additions and 4 deletions

View File

@ -23,7 +23,7 @@
<![endif]--> <![endif]-->
<style> <style>
header { header {
background: url("{{ page.root }}background.png"); background: url("{{ page.root }}static/background.png");
} }
header h1 { header h1 {

View File

@ -17,8 +17,8 @@ root: ../
<a href="https://minetest.rubenwardy.com/redcrab_nov13.zip">Download (.zip)</a> <a href="https://minetest.rubenwardy.com/redcrab_nov13.zip">Download (.zip)</a>
</p> </p>
<link rel="stylesheet" href="{{ page.root }}leaflet.css" /> <link rel="stylesheet" href="{{ page.root }}static/leaflet.css" />
<script src="{{ page.root }}leaflet.js"></script> <script src="{{ page.root }}static/leaflet.js"></script>
<style> .labelclass{position: absolute; background: rgba(255,0,255,0); font-size:20px;}</style> <style> .labelclass{position: absolute; background: rgba(255,0,255,0); font-size:20px;}</style>
<div id="mapid" style="width: 100%; height: 500px;"></div> <div id="mapid" style="width: 100%; height: 500px;"></div>
<script> <script>
@ -44,5 +44,5 @@ root: ../
} }
MineTestMap.on('click', onMapClick); MineTestMap.on('click', onMapClick);
</script> </script>
<script src="markers.js" defer></script></body> <script src="{{ page.root }}static/markers.js" defer></script></body>
</html> </html>

View File

Before

Width:  |  Height:  |  Size: 472 KiB

After

Width:  |  Height:  |  Size: 472 KiB

BIN
static/images/layers-2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
static/images/layers.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

3
static/markers.js Normal file
View File

@ -0,0 +1,3 @@
L.marker([-10*mapZoom, -17*mapZoom]).addTo(MineTestMap)
.bindPopup("Spawn");
// .openPopup();