Difference between revisions of "Widget:Map"

From EntropiaPlanets Wiki - Entropia Universe Guides Wiki Info
m
m
 
(7 intermediate revisions by the same user not shown)
Line 22: Line 22:
         map.fitBounds(mapBounds);
         map.fitBounds(mapBounds);
         L.tileLayer('http://entropiaplanets.com/maps/arkadia/{z}/{x}/{y}.png', {
         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);
L.marker([5, -9]).addTo(map)
.bindPopup("<b>Hello world!</b><br />I am a popup.").openPopup();
L.circle([237.18, 228.75], 10, {
color: '0066CC',
fillColor: '#0066CC',
fillOpacity: 0.5
}).addTo(map).bindPopup("Celeste Harbour");
L.polygon([
[509, -8],
[503, -6],
[51, -47]
]).addTo(map).bindPopup("I am a polygon.");


var popup = L.popup();
var popup = L.popup();
Line 54: Line 37:


map.on('click', onMapClick);
map.on('click', onMapClick);
</script>


</includeonly>
</includeonly>

Latest revision as of 01:04, 17 June 2014