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">
<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>
</head>
<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
</div>
<script type="text/javascript">
<script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -7,14 +7,14 @@
<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>
</head>
<body>
<div id="map" style="width: 600px; height: 600px; border: 1px solid #ccc"></div>
<script type="text/javascript">
<script>
var tiles = new L.GridLayer();

View File

@ -7,13 +7,13 @@
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
var geojson = {
"type": "Polygon",
"coordinates": [[

View File

@ -7,14 +7,14 @@
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
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">
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
var grid = L.gridLayer({
attribution: 'Grid Layer'

View File

@ -9,7 +9,7 @@
<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>
</head>
<body>
@ -17,7 +17,7 @@
<div id="map"></div>
<button id="populate">Populate with 10 markers</button>
<script type="text/javascript">
<script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,7 +9,7 @@
<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>
</head>
<body>
@ -17,7 +17,7 @@
<div id="map"></div>
<button id="removeAdd">Remove and Add Layer</button>
<script type="text/javascript">
<script>
map = L.map('map', { center: [0, 0], zoom: 3, maxZoom: 4 });
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" />
<script type="text/javascript" src="../../build/deps.js"></script>
<script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,7 +9,7 @@
<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>
</head>
<body>
@ -17,7 +17,7 @@
<div id="map"></div>
<button id="populate">Populate with 10 markers</button>
<script type="text/javascript">
<script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
map = L.map('map', { center: [0, 0], zoom: 3, maxZoom: 4 });
var markerStatic = new L.Marker([0, -10], {

View File

@ -9,7 +9,7 @@
<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>
</head>
<body>
@ -19,7 +19,7 @@
<div id="map1" 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',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,7 +9,7 @@
<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>
<style>
.mapcontainer {
@ -65,7 +65,7 @@
<div id="map6" class="map"></div>
</div>
<script type="text/javascript">
<script>
var mapopts = {
center: [35, -122],
zoom : 5

View File

@ -9,14 +9,14 @@
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,8 +9,8 @@
<link rel="stylesheet" href="../css/screen.css" />
<!-- <script type="text/javascript" src="../../dist/leaflet-rollup-src.js"></script> -->
<script type="text/javascript" src="../leaflet-rollup-src.js"></script>
<!-- <script src="../../dist/leaflet-rollup-src.js"></script> -->
<script src="../leaflet-rollup-src.js"></script>
</head>
<body>
@ -21,7 +21,7 @@
<button id="populate-lines">Populate with lines</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',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -7,7 +7,7 @@
<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>
</head>
<body>
@ -20,7 +20,7 @@
</div>
</div>
<script type="text/javascript">
<script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,14 +9,14 @@
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
var map = L.map('map', {
crs: L.CRS.Simple

View File

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

View File

@ -7,14 +7,14 @@
<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>
</head>
<body>
<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 nexrad = new L.TileLayer.WMS("http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi", {
layers: 'nexrad-n0r-900913',

View File

@ -7,7 +7,7 @@
<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>
<style type="text/css">
.my-div-icon {
@ -25,7 +25,7 @@
<div id="map"></div>
<script type="text/javascript">
<script>
var center = [41.2058, 9.4307];
var map = L.map('map').setView(center, 13);

View File

@ -7,14 +7,14 @@
<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>
</head>
<body>
<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 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" />
<script type="text/javascript" src="../../build/deps.js"></script>
<script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script>
</head>
<body>
<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 osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',

View File

@ -9,7 +9,7 @@
<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>
<style>
.container {
@ -55,7 +55,7 @@
<span id="zoom2"></span>
</div>
<script type="text/javascript">
<script>
var sf = [37.77, -122.42],
trd = [63.41, 10.41];

View File

@ -7,7 +7,7 @@
<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>
</head>
<body>
@ -15,7 +15,7 @@
<div id="map"></div>
<script type="text/javascript">
<script>
// Check the 'center' setting of the scroll-wheel, double-click and touch-zoom
// handlers

View File

@ -7,14 +7,14 @@
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
// Test that changing between layers with differing zoomlevels also updates
// the zoomlevels in the map + also

View File

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

View File

@ -9,7 +9,7 @@
<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>
</head>
<body>

View File

@ -8,7 +8,7 @@
<link rel="stylesheet" href="../../dist/leaflet.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>
</head>
<body>
@ -16,7 +16,7 @@
<div id="map"></div>
<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 });

View File

@ -3,7 +3,7 @@
<link rel="stylesheet" href="../../dist/leaflet.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>
</head>

View File

@ -9,7 +9,7 @@
<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>
</head>
<body>

View File

@ -9,7 +9,7 @@
<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>
<style>
@ -31,7 +31,7 @@
<div id="mapSvg"></div>
</div>
<script type="text/javascript">
<script>
function makeMap(container, options) {
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',

View File

@ -5,7 +5,7 @@
<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 type="text/javascript" src="../../build/deps.js"></script>
<script src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script>
<script>
var map,
@ -53,4 +53,4 @@ This page will destroy and recreate a map div lots of times. Developer tools sha
</div>
</body>
</html>
</html>

View File

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

View File

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

View File

@ -9,14 +9,14 @@
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
/*
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" />
<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>
<meta charset="utf-8">

View File

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

View File

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

View File

@ -9,14 +9,14 @@
<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>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -9,7 +9,7 @@
<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>
</head>
<body>
@ -17,7 +17,7 @@
<div id="map"></div>
<button id="populate">Populate with 10 markers</button>
<script type="text/javascript">
<script>
var map = L.map('map').setView([36.9, -95.4], 5);
map.on('contextmenu', function (e) {

View File

@ -7,14 +7,14 @@
<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>
</head>
<body>
<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 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="../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 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>
<body>
<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 });

View File

@ -6,7 +6,7 @@
<link rel="stylesheet" href="../../dist/leaflet.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>
</head>
<body>

View File

@ -9,7 +9,7 @@
<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>
<style>
body {
@ -22,7 +22,7 @@
<p>Click the map to place a popup at the mouse location</p>
<div id="map"></div>
<script type="text/javascript">
<script>
var osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -7,7 +7,7 @@
<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>
<style>
#map { height: 100%; }

View File

@ -5,13 +5,13 @@
<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>
</head>
<body>
<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 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="../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 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>
<body>
<div id="map"></div>
<script type="text/javascript">
<script>
var map;
var myLayerGroup = new L.LayerGroup();

View File

@ -9,7 +9,7 @@
<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>
<style>
#map {
@ -28,7 +28,7 @@
<div id="map" class="map"></div>
<script type="text/javascript">
<script>
var mapopts = {
center: [35, -122],
zoom: 5.7,

View File

@ -9,7 +9,7 @@
<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>
<style>
#map {
@ -78,7 +78,7 @@
<div><button id="stop">stop</button></div>
<script type="text/javascript">
<script>
var mapopts = {
center: [35, -122],
zoom: 5.75,

View File

@ -9,7 +9,7 @@
<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>
<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.
<div id="map" class="map"></div>
<script type="text/javascript">
<script>
var mapopts = {
center: [35, -122],
zoom : 5

View File

@ -11,7 +11,7 @@
<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="../../node_modules/prosthetic-hand/dist/prosthetic-hand.js"></script>
@ -220,4 +220,4 @@
</script>
</body>
</html>
</html>

View File

@ -11,7 +11,7 @@
<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="../../node_modules/prosthetic-hand/dist/prosthetic-hand.js"></script>

View File

@ -7,7 +7,7 @@
<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>
</head>
<body>

View File

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

View File

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

View File

@ -9,14 +9,14 @@
<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>
</head>
<body>
<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',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -7,7 +7,7 @@
<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>
</head>
<body>
@ -15,7 +15,7 @@
<div id="map" style="width: 500px; height: 500px;"></div>
<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',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',

View File

@ -7,7 +7,7 @@
<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>
</head>
<body>

View File

@ -7,7 +7,7 @@
<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>
</head>
<body>

View File

@ -7,7 +7,7 @@
<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>
</head>
<body>

View File

@ -9,7 +9,7 @@
<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>
</head>
<body>

View File

@ -9,7 +9,7 @@
<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>
</head>
<body>

View File

@ -6,7 +6,7 @@
<link rel="stylesheet" href="../../dist/leaflet.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>
</head>
<body>

View File

@ -6,7 +6,7 @@
<link rel="stylesheet" href="../../dist/leaflet.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>
</head>
<body>

View File

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

View File

@ -11,7 +11,7 @@
<body>
<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>

View File

@ -9,7 +9,7 @@ title: Using GeoJSON with Leaflet
<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>
var map = L.map('map').setView([39.74739, -105], 13);

View File

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