Skip to content

Leaflet

Jonathan Beliën edited this page Dec 11, 2018 · 3 revisions

Example

Click here to see it working.

Code

var mymap = L.map('map').setView([0, 0], 2);
L.tileLayer("https://tile.openstreetmap.be/osmbe/{z}/{x}/{y}.png", {
  attribution: "&copy; <a href=\"http://openstreetmap.org\">OpenStreetMap</a> contributors, Tiles courtesy of <a href=\"https://geo6.be/\">GEO-6</a>",
  maxZoom: 18,
}).addTo(mymap);

Just replace osmbe by osmbe-fr or osmbe-nl to render localized baselayer.