To get rid of this ad please Sign up/Login.
Difference between revisions of "Widget:Map"
m |
m |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div id="map" style="width: 768px; height: 768px; margin-left:auto; margin-right:auto;"></div> | <div id="map" style="width: 768px; height: 768px; margin-left:auto; margin-right:auto;"></div> | ||
<script src="http:// | <script src="http://entropiaplanets.com/maps/leaflet/leaflet.js"></script> | ||
<script> | <script> | ||
| Line 36: | Line 22: | ||
map.fitBounds(mapBounds); | map.fitBounds(mapBounds); | ||
L.tileLayer('http://entropiaplanets.com/maps/arkadia/{z} | L.tileLayer('http://entropiaplanets.com/maps/arkadia/{z}_{x}_{y}.jpg', { | ||
minZoom: mapMinZoom, maxNativeZoom: mapMaxZoom, | minZoom: mapMinZoom, maxNativeZoom: mapMaxZoom, | ||
continuousWorld: true | continuousWorld: true | ||
}).addTo(map); | }).addTo(map); | ||
var popup = L.popup(); | var popup = L.popup(); | ||
| Line 68: | Line 37: | ||
map.on('click', onMapClick); | map.on('click', onMapClick); | ||
</includeonly> | </includeonly> | ||