Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
   <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
</head>
<body>
  <div id="map"></div>
   <script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
</body>
</html>
 
.leaflet-container {
    background: #000;
}
#map {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
 
(function() {
"use strict";
var map, southWest, northEast;
function unproject(coord) {
    return map.unproject(coord, map.getMaxZoom());
}
map = L.map("map", {
  minZoom: 0,
  maxZoom: 7,
  crs: L.CRS.Simple
}).setView([0, 0], 0);
southWest = unproject([0, 32768]);
northEast = unproject([32768, 0]);
map.setMaxBounds(new L.LatLngBounds(southWest, northEast));
L.tileLayer("https://tiles{s}.guildwars2.com/1/1/{z}/{x}/{y}.jpg", {
  minZoom: 0,
  maxZoom: 7,
  continuousWorld: true,
  subdomains: [1, 2, 3, 4 ]
}).addTo(map);
}());
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
tivacpro
0viewers