This example shows how to use the popular Leaflet.js v.1.0.0 beta 2 interactive mapping library with OGC-compliant geographic web service (in this case TMS) that comes in the Dutch reference system: Rijksdriehoekstelsel (RD), Amersfoort New (EPSG:28992).
Still, the infinite scrolling bug seems to pop up again...
Cheers,
Edward @emacgillavry
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>Leaflet.js using TMS in EPSG:28992</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="author" content="Edward Mac Gillavry">
<link rel="stylesheet" href="https://cdn.leafletjs.com/leaflet/v1.0.0-beta.2/leaflet.css" />
<link rel="stylesheet" href="main.css" />
<body>
<div id="map-canvas"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.12/proj4.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-beta.2/leaflet.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/kartena/proj4leaflet/leaflet-proj-refactor/src/proj4leaflet.js"></script>
<script src="main.js"></script>
</body>
</html>
Modified http://cdn.leafletjs.com/leaflet/v1.0.0-beta.2/leaflet.js to a secure url
Updated missing url https://cdn.rawgit.com/kartena/Proj4Leaflet/leaflet-proj-refactor/src/proj4leaflet.js to https://cdn.jsdelivr.net/gh/kartena/proj4leaflet/leaflet-proj-refactor/src/proj4leaflet.js
https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.12/proj4.js
https://cdn.leafletjs.com/leaflet/v1.0.0-beta.2/leaflet.js
https://cdn.rawgit.com/kartena/Proj4Leaflet/leaflet-proj-refactor/src/proj4leaflet.js