type attribute not required in HTML5

This commit is contained in:
Uzerus 2017-02-04 16:17:51 +01:00 committed by Per Liedman
parent a58a28a9a0
commit cab880d4d8
72 changed files with 174 additions and 174 deletions

View File

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1 maximum-scale=1.0 user-scalable=0"> <meta name="viewport" content="width=device-width,initial-scale=1 maximum-scale=1.0 user-scalable=0">
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -23,7 +23,7 @@
Bug tested to occur on: Safari on Mac (Tested in 5.1.7), iPad/iPhone 5.1.1., Android 4 Browser. Hack is in L.Browser.chrome and TileLayer._addTile Bug tested to occur on: Safari on Mac (Tested in 5.1.7), iPad/iPhone 5.1.1., Android 4 Browser. Hack is in L.Browser.chrome and TileLayer._addTile
</div> </div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -7,14 +7,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map" style="width: 600px; height: 600px; border: 1px solid #ccc"></div> <div id="map" style="width: 600px; height: 600px; border: 1px solid #ccc"></div>
<script type="text/javascript"> <script>
var tiles = new L.GridLayer(); var tiles = new L.GridLayer();

View File

@ -7,13 +7,13 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var geojson = { var geojson = {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [[

View File

@ -7,14 +7,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -8,14 +8,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var grid = L.gridLayer({ var grid = L.gridLayer({
attribution: 'Grid Layer' attribution: 'Grid Layer'

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -17,7 +17,7 @@
<div id="map"></div> <div id="map"></div>
<button id="populate">Populate with 10 markers</button> <button id="populate">Populate with 10 markers</button>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -17,7 +17,7 @@
<div id="map"></div> <div id="map"></div>
<button id="removeAdd">Remove and Add Layer</button> <button id="removeAdd">Remove and Add Layer</button>
<script type="text/javascript"> <script>
map = L.map('map', { center: [0, 0], zoom: 3, maxZoom: 4 }); map = L.map('map', { center: [0, 0], zoom: 3, maxZoom: 4 });
var osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { var osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {

View File

@ -9,14 +9,14 @@
<link rel="stylesheet" href="../css/mobile.css" /> <link rel="stylesheet" href="../css/mobile.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -17,7 +17,7 @@
<div id="map"></div> <div id="map"></div>
<button id="populate">Populate with 10 markers</button> <button id="populate">Populate with 10 markers</button>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
map = L.map('map', { center: [0, 0], zoom: 3, maxZoom: 4 }); map = L.map('map', { center: [0, 0], zoom: 3, maxZoom: 4 });
var markerStatic = new L.Marker([0, -10], { var markerStatic = new L.Marker([0, -10], {

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/mobile.css" /> <link rel="stylesheet" href="../css/mobile.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -19,7 +19,7 @@
<div id="map1" style="float: left; width:45%; height: 80%;"></div> <div id="map1" style="float: left; width:45%; height: 80%;"></div>
<div id="map2" style="float: left; width:45%; height: 80%;"></div> <div id="map2" style="float: left; width:45%; height: 80%;"></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<link rel="stylesheet" href="../css/mobile.css" /> <link rel="stylesheet" href="../css/mobile.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<link rel="stylesheet" href="../css/mobile.css" /> <link rel="stylesheet" href="../css/mobile.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<style> <style>
.mapcontainer { .mapcontainer {
@ -65,7 +65,7 @@
<div id="map6" class="map"></div> <div id="map6" class="map"></div>
</div> </div>
<script type="text/javascript"> <script>
var mapopts = { var mapopts = {
center: [35, -122], center: [35, -122],
zoom : 5 zoom : 5

View File

@ -9,14 +9,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,8 +9,8 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<!-- <script type="text/javascript" src="../../dist/leaflet-rollup-src.js"></script> --> <!-- <script src="../../dist/leaflet-rollup-src.js"></script> -->
<script type="text/javascript" src="../leaflet-rollup-src.js"></script> <script src="../leaflet-rollup-src.js"></script>
</head> </head>
<body> <body>
@ -21,7 +21,7 @@
<button id="populate-lines">Populate with lines</button> <button id="populate-lines">Populate with lines</button>
<button id="populate-polygons">Populate with polygons</button> <button id="populate-polygons">Populate with polygons</button>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -20,7 +20,7 @@
</div> </div>
</div> </div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var map = L.map('map', { var map = L.map('map', {
crs: L.CRS.Simple crs: L.CRS.Simple

View File

@ -65,7 +65,7 @@
} }
</style> </style>
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -134,7 +134,7 @@
<button id="reset">reset</button> <button id="reset">reset</button>
</div> </div>
<script type="text/javascript"> <script>
var kyiv = [50.5, 30.5], var kyiv = [50.5, 30.5],
lnd = [51.51, -0.12], lnd = [51.51, -0.12],

View File

@ -7,14 +7,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map" style="width: 800px; height: 600px; border: 1px solid #ccc"></div> <div id="map" style="width: 800px; height: 600px; border: 1px solid #ccc"></div>
<script type="text/javascript"> <script>
var map = new L.Map('map'); var map = new L.Map('map');
var nexrad = new L.TileLayer.WMS("http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi", { var nexrad = new L.TileLayer.WMS("http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi", {
layers: 'nexrad-n0r-900913', layers: 'nexrad-n0r-900913',

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<style type="text/css"> <style type="text/css">
.my-div-icon { .my-div-icon {
@ -25,7 +25,7 @@
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var center = [41.2058, 9.4307]; var center = [41.2058, 9.4307];
var map = L.map('map').setView(center, 13); var map = L.map('map').setView(center, 13);

View File

@ -7,14 +7,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map" style="width: 1024px; height: 440px; border: 1px solid #ccc"></div> <div id="map" style="width: 1024px; height: 440px; border: 1px solid #ccc"></div>
<script type="text/javascript"> <script>
var map = new L.Map('map', {crs: L.CRS.EPSG4326}); var map = new L.Map('map', {crs: L.CRS.EPSG4326});
var bluemarble = new L.TileLayer.WMS("http://maps.opengeo.org/geowebcache/service/wms", { var bluemarble = new L.TileLayer.WMS("http://maps.opengeo.org/geowebcache/service/wms", {

View File

@ -7,14 +7,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map" style="width: 800px; height: 600px; border: 1px solid #ccc"></div> <div id="map" style="width: 800px; height: 600px; border: 1px solid #ccc"></div>
<script type="text/javascript"> <script>
var map = new L.Map('map'); var map = new L.Map('map');
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/mobile.css" /> <link rel="stylesheet" href="../css/mobile.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<style> <style>
.container { .container {
@ -55,7 +55,7 @@
<span id="zoom2"></span> <span id="zoom2"></span>
</div> </div>
<script type="text/javascript"> <script>
var sf = [37.77, -122.42], var sf = [37.77, -122.42],
trd = [63.41, 10.41]; trd = [63.41, 10.41];

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -15,7 +15,7 @@
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
// Check the 'center' setting of the scroll-wheel, double-click and touch-zoom // Check the 'center' setting of the scroll-wheel, double-click and touch-zoom
// handlers // handlers

View File

@ -7,14 +7,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
// Test that changing between layers with differing zoomlevels also updates // Test that changing between layers with differing zoomlevels also updates
// the zoomlevels in the map + also // the zoomlevels in the map + also

View File

@ -19,7 +19,7 @@
} }
</style> </style>
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -44,7 +44,7 @@
<tr><td>on grid load</td><td id='load'></td></tr> <tr><td>on grid load</td><td id='load'></td></tr>
</div> </div>
<script type="text/javascript"> <script>
var kyiv = [50.5, 30.5], var kyiv = [50.5, 30.5],
lnd = [51.51, -0.12], lnd = [51.51, -0.12],

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>

View File

@ -8,7 +8,7 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -16,7 +16,7 @@
<div id="map"></div> <div id="map"></div>
<button id="foo">Click to add layer, then zoom out or in</button> <button id="foo">Click to add layer, then zoom out or in</button>
<script type="text/javascript"> <script>
var map = new L.Map('map', { center: new L.LatLng(45.50144, -122.67599), zoom: 4 }); var map = new L.Map('map', { center: new L.LatLng(45.50144, -122.67599), zoom: 4 });

View File

@ -3,7 +3,7 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<style> <style>
@ -31,7 +31,7 @@
<div id="mapSvg"></div> <div id="mapSvg"></div>
</div> </div>
<script type="text/javascript"> <script>
function makeMap(container, options) { function makeMap(container, options) {
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',

View File

@ -5,7 +5,7 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<script> <script>
var map, var map,
@ -53,4 +53,4 @@ This page will destroy and recreate a map div lots of times. Developer tools sha
</div> </div>
</body> </body>
</html> </html>

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -19,7 +19,7 @@
<div id="map"></div> <div id="map"></div>
<button id="populate">Populate with 100 more markers</button><div id='perf'></div> <button id="populate">Populate with 100 more markers</button><div id='perf'></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -25,7 +25,7 @@
<div style="clear:both"></div> <div style="clear:both"></div>
<script type="text/javascript"> <script>
function addLayerAndMarker(map) { function addLayerAndMarker(map) {
var layer = new L.TileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { var layer = new L.TileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
maxZoom : 18 maxZoom : 18

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -25,7 +25,7 @@
<div>Map dragging disabled:</div> <div>Map dragging disabled:</div>
<div id="map2" style="height: 300px;width: 400px; float:left;"></div> <div id="map2" style="height: 300px;width: 400px; float:left;"></div>
<script type="text/javascript"> <script>
function addLayerAndMarkers(map) { function addLayerAndMarkers(map) {
var layer = new L.TileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { var layer = new L.TileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
maxZoom : 18 maxZoom : 18

View File

@ -9,14 +9,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
/* /*
Can be used to profile performance of event system. Can be used to profile performance of event system.

View File

@ -4,7 +4,7 @@
<meta name="viewport" id="vp" content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" /> <meta name="viewport" id="vp" content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" />
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<meta charset="utf-8"> <meta charset="utf-8">

View File

@ -33,7 +33,7 @@
} }
} }
</style> </style>
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<table> <table>
<tr><td> </td><td>Enter </td><td>Move </td><td>Exit </td><td>Click </td></tr> <tr><td> </td><td>Enter </td><td>Move </td><td>Exit </td><td>Click </td></tr>
@ -46,7 +46,7 @@
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -14,14 +14,14 @@
} }
</style> </style>
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -17,7 +17,7 @@
<div id="map"></div> <div id="map"></div>
<button id="populate">Populate with 10 markers</button> <button id="populate">Populate with 10 markers</button>
<script type="text/javascript"> <script>
var map = L.map('map').setView([36.9, -95.4], 5); var map = L.map('map').setView([36.9, -95.4], 5);
map.on('contextmenu', function (e) { map.on('contextmenu', function (e) {

View File

@ -7,14 +7,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map" style="width: 600px; height: 600px; border: 1px solid #ccc"></div> <div id="map" style="width: 600px; height: 600px; border: 1px solid #ccc"></div>
<script type="text/javascript"> <script>
var map = L.map('map').setView( [50, 50], 10); var map = L.map('map').setView( [50, 50], 10);
var marker = L.marker([50, 50], {draggable: true}).addTo(map); var marker = L.marker([50, 50], {draggable: true}).addTo(map);

View File

@ -8,15 +8,15 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.8.0.js'></script> <script src="http://code.jquery.com/jquery-1.8.0.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var map = new L.Map('map', { center: new L.LatLng(45.50144, -122.67599), zoom: 4 }); var map = new L.Map('map', { center: new L.LatLng(45.50144, -122.67599), zoom: 4 });

View File

@ -6,7 +6,7 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<style> <style>
body { body {
@ -22,7 +22,7 @@
<p>Click the map to place a popup at the mouse location</p> <p>Click the map to place a popup at the mouse location</p>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { var osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', attribution: '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../css/mobile.css" /> <link rel="stylesheet" href="../css/mobile.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<style> <style>
#map { height: 100%; } #map { height: 100%; }

View File

@ -5,13 +5,13 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map" style="width: 600px; height: 600px; border: 1px solid #ccc"></div> <div id="map" style="width: 600px; height: 600px; border: 1px solid #ccc"></div>
<script type="text/javascript"> <script>
var blueIcon = new L.Icon({iconUrl: 'http://www.webatlas.no/webatlasapi/v/071009/media/interface/default/markers/flag_blue.gif'}); var blueIcon = new L.Icon({iconUrl: 'http://www.webatlas.no/webatlasapi/v/071009/media/interface/default/markers/flag_blue.gif'});
var redIcon = new L.Icon({iconUrl: 'http://www.webatlas.no/webatlasapi/v/071009/media/interface/default/markers/flag_red.gif'}); var redIcon = new L.Icon({iconUrl: 'http://www.webatlas.no/webatlasapi/v/071009/media/interface/default/markers/flag_red.gif'});

View File

@ -8,15 +8,15 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.8.0.js'></script> <script src="http://code.jquery.com/jquery-1.8.0.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var map; var map;
var myLayerGroup = new L.LayerGroup(); var myLayerGroup = new L.LayerGroup();

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<style> <style>
#map { #map {
@ -28,7 +28,7 @@
<div id="map" class="map"></div> <div id="map" class="map"></div>
<script type="text/javascript"> <script>
var mapopts = { var mapopts = {
center: [35, -122], center: [35, -122],
zoom: 5.7, zoom: 5.7,

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<style> <style>
#map { #map {
@ -78,7 +78,7 @@
<div><button id="stop">stop</button></div> <div><button id="stop">stop</button></div>
<script type="text/javascript"> <script>
var mapopts = { var mapopts = {
center: [35, -122], center: [35, -122],
zoom: 5.75, zoom: 5.75,

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<style> <style>
</style> </style>
@ -19,7 +19,7 @@
The opacity of the "toner" layer should pulse nicely, even when dragging/zooming the map around with new tiles. The opacity of the "toner" layer should pulse nicely, even when dragging/zooming the map around with new tiles.
<div id="map" class="map"></div> <div id="map" class="map"></div>
<script type="text/javascript"> <script>
var mapopts = { var mapopts = {
center: [35, -122], center: [35, -122],
zoom : 5 zoom : 5

View File

@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<script src="../../node_modules/prosthetic-hand/dist/prosthetic-hand.js"></script> <script src="../../node_modules/prosthetic-hand/dist/prosthetic-hand.js"></script>
@ -220,4 +220,4 @@
</script> </script>
</body> </body>
</html> </html>

View File

@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
<script src="../../node_modules/prosthetic-hand/dist/prosthetic-hand.js"></script> <script src="../../node_modules/prosthetic-hand/dist/prosthetic-hand.js"></script>

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -16,8 +16,8 @@
<button onclick="geojsonLayerBounds();">Show GeoJSON layer bounds</button> <button onclick="geojsonLayerBounds();">Show GeoJSON layer bounds</button>
<button onclick="featureGroupBounds();">Show feature group bounds</button> <button onclick="featureGroupBounds();">Show feature group bounds</button>
<script type="text/javascript" src="geojson-sample.js"></script> <script src="geojson-sample.js"></script>
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -40,15 +40,15 @@
} }
</style> </style>
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript" src="us-states.js"></script> <script src="us-states.js"></script>
<script type="text/javascript"> <script>
var map = L.map('map').setView([37.8, -96], 4); var map = L.map('map').setView([37.8, -96], 4);

View File

@ -9,14 +9,14 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script>
var osmUrl = 'http://api.tiles.mapbox.com/v4/mapbox.light/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibGllZG1hbiIsImEiOiI3ZGFmOGI2ZWY0MTAyYzUyMjAxNjcxYjQzZjRkYzM3MSJ9.XoFXhnx2eXp0DJwL3aEzZg', var osmUrl = 'http://api.tiles.mapbox.com/v4/mapbox.light/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibGllZG1hbiIsImEiOiI3ZGFmOGI2ZWY0MTAyYzUyMjAxNjcxYjQzZjRkYzM3MSJ9.XoFXhnx2eXp0DJwL3aEzZg',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>
@ -15,7 +15,7 @@
<div id="map" style="width: 500px; height: 500px;"></div> <div id="map" style="width: 500px; height: 500px;"></div>
<input type="button" value="Set blue rectangle bounds as current map extent." onclick="resetBounds();" /> <input type="button" value="Set blue rectangle bounds as current map extent." onclick="resetBounds();" />
<script type="text/javascript"> <script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/mobile.css" /> <link rel="stylesheet" href="../css/mobile.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="../css/mobile.css" /> <link rel="stylesheet" href="../css/mobile.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>

View File

@ -6,7 +6,7 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>

View File

@ -6,7 +6,7 @@
<link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../../dist/leaflet.css" />
<link rel="stylesheet" href="../css/screen.css" /> <link rel="stylesheet" href="../css/screen.css" />
<script type="text/javascript" src="../../build/deps.js"></script> <script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script> <script src="../leaflet-include.js"></script>
</head> </head>
<body> <body>

View File

@ -154,6 +154,6 @@
})(); })();
</script> </script>
<script type="text/javascript" src="{{ root }}docs/js/docs.js"></script> <script src="{{ root }}docs/js/docs.js"></script>
</body> </body>
</html> </html>

View File

@ -11,7 +11,7 @@
<body> <body>
<div id="map" style="width: 600px; height: 400px"></div> <div id="map" style="width: 600px; height: 400px"></div>
<script src="sample-geojson.js" type="text/javascript"></script> <script src="sample-geojson.js"></script>
<script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
<script> <script>

View File

@ -9,7 +9,7 @@ title: Using GeoJSON with Leaflet
<div id="map" class="map" style="height: 250px"></div> <div id="map" class="map" style="height: 250px"></div>
<script src="sample-geojson.js" type="text/javascript"></script> <script src="sample-geojson.js"></script>
<script> <script>
var map = L.map('map').setView([39.74739, -105], 13); var map = L.map('map').setView([39.74739, -105], 13);

View File

@ -9,19 +9,19 @@
<body> <body>
<div id="mocha"></div> <div id="mocha"></div>
<script src="expect.js"></script> <script src="expect.js"></script>
<script type="text/javascript" src="../node_modules/mocha/mocha.js"></script> <script src="../node_modules/mocha/mocha.js"></script>
<script type="text/javascript" src="../node_modules/happen/happen.js"></script> <script src="../node_modules/happen/happen.js"></script>
<script type="text/javascript" src="../node_modules/prosthetic-hand/dist/prosthetic-hand.js"></script> <script src="../node_modules/prosthetic-hand/dist/prosthetic-hand.js"></script>
<script type="text/javascript" src="sinon.js"></script> <script src="sinon.js"></script>
<!-- source files --> <!-- source files -->
<script> <script>
// Trick Leaflet into believing we have a touchscreen (for Chrome) // Trick Leaflet into believing we have a touchscreen (for Chrome)
if (window.Touch) { window.ontouchstart = function(){} }; if (window.Touch) { window.ontouchstart = function(){} };
</script> </script>
<!-- <script type="text/javascript" src="../build/deps.js"></script> --> <!-- <script src="../build/deps.js"></script> -->
<script type="text/javascript" src="../debug/leaflet-include.js"></script> <script src="../debug/leaflet-include.js"></script>
<script> <script>
mocha.setup({ mocha.setup({
@ -32,69 +32,69 @@
<!-- spec files --> <!-- spec files -->
<script type="text/javascript" src="suites/SpecHelper.js"></script> <script src="suites/SpecHelper.js"></script>
<!-- /control --> <!-- /control -->
<script type="text/javascript" src="suites/control/ControlSpec.js"></script> <script src="suites/control/ControlSpec.js"></script>
<script type="text/javascript" src="suites/control/Control.LayersSpec.js"></script> <script src="suites/control/Control.LayersSpec.js"></script>
<script type="text/javascript" src="suites/control/Control.ScaleSpec.js"></script> <script src="suites/control/Control.ScaleSpec.js"></script>
<script type="text/javascript" src="suites/control/Control.AttributionSpec.js"></script> <script src="suites/control/Control.AttributionSpec.js"></script>
<!-- /core --> <!-- /core -->
<script type="text/javascript" src="suites/core/UtilSpec.js"></script> <script src="suites/core/UtilSpec.js"></script>
<script type="text/javascript" src="suites/core/ClassSpec.js"></script> <script src="suites/core/ClassSpec.js"></script>
<script type="text/javascript" src="suites/core/EventsSpec.js"></script> <script src="suites/core/EventsSpec.js"></script>
<!-- /geometry --> <!-- /geometry -->
<script type="text/javascript" src="suites/geometry/PointSpec.js"></script> <script src="suites/geometry/PointSpec.js"></script>
<script type="text/javascript" src="suites/geometry/BoundsSpec.js"></script> <script src="suites/geometry/BoundsSpec.js"></script>
<script type="text/javascript" src="suites/geometry/TransformationSpec.js"></script> <script src="suites/geometry/TransformationSpec.js"></script>
<script type="text/javascript" src="suites/geometry/LineUtilSpec.js"></script> <script src="suites/geometry/LineUtilSpec.js"></script>
<script type="text/javascript" src="suites/geometry/PolyUtilSpec.js"></script> <script src="suites/geometry/PolyUtilSpec.js"></script>
<!-- /geo --> <!-- /geo -->
<script type="text/javascript" src="suites/geo/LatLngSpec.js"></script> <script src="suites/geo/LatLngSpec.js"></script>
<script type="text/javascript" src="suites/geo/LatLngBoundsSpec.js"></script> <script src="suites/geo/LatLngBoundsSpec.js"></script>
<script type="text/javascript" src="suites/geo/ProjectionSpec.js"></script> <script src="suites/geo/ProjectionSpec.js"></script>
<!-- /dom --> <!-- /dom -->
<script type="text/javascript" src="suites/dom/DomEventSpec.js"></script> <script src="suites/dom/DomEventSpec.js"></script>
<script type="text/javascript" src="suites/dom/DomUtilSpec.js"></script> <script src="suites/dom/DomUtilSpec.js"></script>
<!-- /layer --> <!-- /layer -->
<script type="text/javascript" src="suites/layer/FeatureGroupSpec.js"></script> <script src="suites/layer/FeatureGroupSpec.js"></script>
<script type="text/javascript" src="suites/layer/GeoJSONSpec.js"></script> <script src="suites/layer/GeoJSONSpec.js"></script>
<script type="text/javascript" src="suites/layer/ImageOverlaySpec.js"></script> <script src="suites/layer/ImageOverlaySpec.js"></script>
<script type="text/javascript" src="suites/layer/LayerGroupSpec.js"></script> <script src="suites/layer/LayerGroupSpec.js"></script>
<script type="text/javascript" src="suites/layer/PopupSpec.js"></script> <script src="suites/layer/PopupSpec.js"></script>
<script type="text/javascript" src="suites/layer/TooltipSpec.js"></script> <script src="suites/layer/TooltipSpec.js"></script>
<!-- /layer/tile --> <!-- /layer/tile -->
<script type="text/javascript" src="suites/layer/tile/GridLayerSpec.js"></script> <script src="suites/layer/tile/GridLayerSpec.js"></script>
<script type="text/javascript" src="suites/layer/tile/TileLayerSpec.js"></script> <script src="suites/layer/tile/TileLayerSpec.js"></script>
<!-- /layer/marker/ --> <!-- /layer/marker/ -->
<script type="text/javascript" src="suites/layer/marker/MarkerSpec.js"></script> <script src="suites/layer/marker/MarkerSpec.js"></script>
<script type="text/javascript" src="suites/layer/marker/Icon.DefaultSpec.js"></script> <script src="suites/layer/marker/Icon.DefaultSpec.js"></script>
<!-- /layer/vector/ --> <!-- /layer/vector/ -->
<script type="text/javascript" src="suites/layer/vector/CircleSpec.js"></script> <script src="suites/layer/vector/CircleSpec.js"></script>
<script type="text/javascript" src="suites/layer/vector/CircleMarkerSpec.js"></script> <script src="suites/layer/vector/CircleMarkerSpec.js"></script>
<script type="text/javascript" src="suites/layer/vector/PathSpec.js"></script> <script src="suites/layer/vector/PathSpec.js"></script>
<script type="text/javascript" src="suites/layer/vector/PolygonSpec.js"></script> <script src="suites/layer/vector/PolygonSpec.js"></script>
<script type="text/javascript" src="suites/layer/vector/PolylineSpec.js"></script> <script src="suites/layer/vector/PolylineSpec.js"></script>
<script type="text/javascript" src="suites/layer/vector/PolylineGeometrySpec.js"></script> <script src="suites/layer/vector/PolylineGeometrySpec.js"></script>
<script type="text/javascript" src="suites/layer/vector/CanvasSpec.js"></script> <script src="suites/layer/vector/CanvasSpec.js"></script>
<!-- /map --> <!-- /map -->
<script type="text/javascript" src="suites/map/MapSpec.js"></script> <script src="suites/map/MapSpec.js"></script>
<!-- /map/handler --> <!-- /map/handler -->
<script type="text/javascript" src="suites/map/handler/Map.DragSpec.js"></script> <script src="suites/map/handler/Map.DragSpec.js"></script>
<script type="text/javascript" src="suites/map/handler/Map.TouchZoomSpec.js"></script> <script src="suites/map/handler/Map.TouchZoomSpec.js"></script>
<!-- /geo/crs --> <!-- /geo/crs -->
<script type="text/javascript" src="suites/geo/CRSSpec.js"></script> <script src="suites/geo/CRSSpec.js"></script>
<script> <script>
(window.mochaPhantomJS || window.mocha).run(); (window.mochaPhantomJS || window.mocha).run();