Widget: Amnoon: Różnice pomiędzy wersjami

Z L6F
Przejdź do nawigacji Przejdź do wyszukiwania
UWAGA! Zastąpienie treści hasła bardzo krótkim tekstem: „=Test=”
Nie podano opisu zmian
 
(Nie pokazano 2 pośrednich wersji utworzonych przez tego samego użytkownika)
Linia 1: Linia 1:
=Test=
=Test=
<references/>
[[Category:Widgets]]</noinclude><includeonly><!--{if isset($map)}--><div id="map"></div>
<div style="clear:<!--{$clear|default:both}-->;"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0/leaflet.js"></script>
<style>
.leaflet-container {
    background: #000;
}
.mapchatlink {
    width: 6.6em;
}
</style>
<script type="text/javascript">
var map = L.map('image-map', {
      minZoom: 1,
      maxZoom: 3,
      center: [0, 0],
      zoom: 1,
      crs: L.CRS.Simple
    });
    var w = 1765,
        h = 819,
        url = 'https://i.imgur.com/D6U0iDY.jpg';
    var southWest = map.unproject([0, h], map.getMaxZoom()-1);
    var northEast = map.unproject([w, 0], map.getMaxZoom()-1);
    var bounds = new L.LatLngBounds(southWest, northEast);
    L.imageOverlay(url, bounds).addTo(map);
    map.setMaxBounds(bounds);
    //PoI - Test
var Icon = L.icon({
    iconUrl: 'https://wiki.guildwars2.com/images/f/fb/Point_of_interest.png',
    iconSize:    [20, 20], // size of the icon
    iconAnchor:  [1, 1], // point of the icon which will correspond to marker's location
    popupAnchor:  [10, -1] // point from which the popup should open relative to the iconAnchor
});
L.marker([-100, 100], {icon: Icon}).addTo(map).bindPopup("<b>Amnoon</b>");
</script><!--{else}--><span class="error">You must define the "map" parameter!</span><!--{/if}--></includeonly>

Aktualna wersja na dzień 13:40, 7 lis 2017

Test

<references/>