aboutsummaryrefslogtreecommitdiff
path: root/examples/index.html
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2014-05-28 19:19:26 +0100
committerChristopher Baines <mail@cbaines.net>2014-05-28 19:23:19 +0100
commit469969b0badf374bae95ae2679a0fb109616b876 (patch)
treeeef84f2af2c7db43fc4fa18753da4d6dd854bf54 /examples/index.html
parent5f3ab228f9b8ed637ee0a4b8488151ad9052241a (diff)
downloadleaflet-indoor-469969b0badf374bae95ae2679a0fb109616b876.tar
leaflet-indoor-469969b0badf374bae95ae2679a0fb109616b876.tar.gz
Use protocol relative urls for Overpass and tiles
Also include the leaflet.css file, to avoid loading it from the CDN.
Diffstat (limited to 'examples/index.html')
-rw-r--r--examples/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/index.html b/examples/index.html
index fcb411e..221abdc 100644
--- a/examples/index.html
+++ b/examples/index.html
@@ -3,7 +3,7 @@
<head>
<title>Indoor Map Example</title>
- <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
+ <link rel="stylesheet" href="leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="libs/leaflet.ie.css" /><![endif]-->
@@ -38,7 +38,7 @@
<script type="text/JavaScript">
// Create the map
- var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
+ var osmUrl = '//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osm = new L.TileLayer(osmUrl, {
maxZoom: 22,
attribution: "Map data &copy; OpenStreetMap contributors"
@@ -52,7 +52,7 @@
var query = '(relation(1370729);>>->.rels;>;);out;';
- $.get("http://overpass.osm.rambler.ru/cgi/interpreter?data=" + query, function(data) {
+ $.get("//overpass-api.de/api/interpreter?data=" + query, function(data) {
var geoJSON = osmtogeojson(data, {
polygonFeatures: {
buildingpart: true