UNPKG

leaflet

Version:

JavaScript library for mobile-friendly interactive maps

39 lines (27 loc) 969 B
<!DOCTYPE html> <html> <head> <title>Leaflet debug page</title> <link rel="stylesheet" href="../../dist/leaflet.css" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="../css/screen.css" /> <script src="../../build/deps.js"></script> <script src="../leaflet-include.js"></script> </head> <body> <div id="map"></div> <button id="populate">Populate with 10 markers</button> <script> var osmUrl = 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}{r}.png', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: osmAttrib}); var map = L.map('map') .setView([50.5, 30.51], 15) .addLayer(osm); var TestClass = L.Class.extend({ includes: L.Mixin.Events }); var testInstance = new TestClass(); </script> </body> </html>