From bd635ed01f1946b9851beb81218a2eb6793ace6d Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 12 May 2016 09:38:35 +0200 Subject: [PATCH] Load the examples resources with HTTPS --- config/examples/example.html | 2 +- config/jsdoc/api/template/static/styles/jaguar.css | 2 +- examples/custom-icon.js | 2 +- examples/custom-interactions.js | 2 +- examples/d3.html | 4 ++-- examples/icon-color.js | 2 +- examples/icon.js | 2 +- examples/layer-extent.js | 6 ++---- examples/layer-group.js | 6 ++---- examples/mapbox-vector-tiles-advanced.js | 2 +- examples/mapbox-vector-tiles.js | 2 +- examples/min-max-resolution.js | 3 +-- examples/popup.js | 3 +-- examples/raster.html | 2 +- examples/reprojection-by-code.html | 2 +- examples/reprojection-image.html | 2 +- examples/reprojection.html | 2 +- examples/reprojection.js | 2 +- examples/resources/layout.css | 2 +- examples/scaleline-indiana-east.html | 2 +- examples/semi-transparent-layer.js | 2 +- examples/sphere-mollweide.html | 2 +- examples/static-image.js | 2 +- examples/tile-load-events.js | 2 +- examples/tilejson.js | 2 +- examples/tileutfgrid.js | 4 ++-- examples/topojson.js | 2 +- examples/vector-esri-edit.js | 2 +- examples/vector-esri.js | 2 +- examples/wms-custom-proj.js | 4 ++-- examples/wms-image-custom-proj.html | 4 ++-- examples/wms-image-custom-proj.js | 4 ++-- examples/wms-no-proj.js | 4 ++-- examples/wmts-hidpi.js | 2 +- examples/wmts-ign.js | 2 +- examples/wmts.js | 2 +- examples/xyz-esri.js | 2 +- 37 files changed, 45 insertions(+), 51 deletions(-) diff --git a/config/examples/example.html b/config/examples/example.html index 451ebfb071..2726943767 100644 --- a/config/examples/example.html +++ b/config/examples/example.html @@ -61,7 +61,7 @@ Copy Edit -
+ diff --git a/config/jsdoc/api/template/static/styles/jaguar.css b/config/jsdoc/api/template/static/styles/jaguar.css index 073d9c46d2..240db1b3cd 100644 --- a/config/jsdoc/api/template/static/styles/jaguar.css +++ b/config/jsdoc/api/template/static/styles/jaguar.css @@ -1,4 +1,4 @@ -@import url(http://fonts.googleapis.com/css?family=Quattrocento+Sans:400,400italic,700); +@import url(https://fonts.googleapis.com/css?family=Quattrocento+Sans:400,400italic,700); .navbar-inverse { border: 0; } diff --git a/examples/custom-icon.js b/examples/custom-icon.js index 0466a397d1..49de67de59 100644 --- a/examples/custom-icon.js +++ b/examples/custom-icon.js @@ -8,7 +8,7 @@ logoElement.href = 'http://www.osgeo.org/'; logoElement.target = '_blank'; var logoImage = document.createElement('img'); -logoImage.src = 'http://www.osgeo.org/sites/all/themes/osgeo/logo.png'; +logoImage.src = 'https://www.osgeo.org/sites/all/themes/osgeo/logo.png'; logoElement.appendChild(logoImage); diff --git a/examples/custom-interactions.js b/examples/custom-interactions.js index 8f01d2e5dd..2a8381854f 100644 --- a/examples/custom-interactions.js +++ b/examples/custom-interactions.js @@ -150,7 +150,7 @@ var map = new ol.Map({ layers: [ new ol.layer.Tile({ source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/mapbox.geography-class.json' + url: 'https://api.tiles.mapbox.com/v3/mapbox.geography-class.json?secure' }) }), new ol.layer.Vector({ diff --git a/examples/d3.html b/examples/d3.html index fb0d6a2123..9855135a35 100644 --- a/examples/d3.html +++ b/examples/d3.html @@ -6,7 +6,7 @@ docs: >

The example loads TopoJSON geometries and uses d3 (d3.geo.path) to render these geometries to a canvas element that is then used as the image of an ol3 image layer.

tags: "d3" resources: - - http://d3js.org/d3.v3.min.js - - http://d3js.org/topojson.v1.min.js + - https://d3js.org/d3.v3.min.js + - https://d3js.org/topojson.v1.min.js ---
diff --git a/examples/icon-color.js b/examples/icon-color.js index f8b4f88fa1..8b043b00b4 100644 --- a/examples/icon-color.js +++ b/examples/icon-color.js @@ -55,7 +55,7 @@ var vectorLayer = new ol.layer.Vector({ var rasterLayer = new ol.layer.Tile({ source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/mapbox.geography-class.json', + url: 'https://api.tiles.mapbox.com/v3/mapbox.geography-class.json?secure', crossOrigin: '' }) }); diff --git a/examples/icon.js b/examples/icon.js index de96dc3680..56abced3a7 100644 --- a/examples/icon.js +++ b/examples/icon.js @@ -39,7 +39,7 @@ var vectorLayer = new ol.layer.Vector({ var rasterLayer = new ol.layer.Tile({ source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/mapbox.geography-class.json', + url: 'https://api.tiles.mapbox.com/v3/mapbox.geography-class.json?secure', crossOrigin: '' }) }); diff --git a/examples/layer-extent.js b/examples/layer-extent.js index 0ab85bd422..16e595c2d2 100644 --- a/examples/layer-extent.js +++ b/examples/layer-extent.js @@ -17,8 +17,7 @@ var extents = { var base = new ol.layer.Tile({ source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/' + - 'mapbox.world-light.json', + url: 'https://api.tiles.mapbox.com/v3/mapbox.world-light.json?secure', crossOrigin: 'anonymous' }) }); @@ -26,8 +25,7 @@ var base = new ol.layer.Tile({ var overlay = new ol.layer.Tile({ extent: extents.India, source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/' + - 'mapbox.world-black.json', + url: 'https://api.tiles.mapbox.com/v3/mapbox.world-black.json?secure', crossOrigin: 'anonymous' }) }); diff --git a/examples/layer-group.js b/examples/layer-group.js index 58e9290133..d7a69434be 100644 --- a/examples/layer-group.js +++ b/examples/layer-group.js @@ -14,15 +14,13 @@ var map = new ol.Map({ layers: [ new ol.layer.Tile({ source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/' + - 'mapbox.20110804-hoa-foodinsecurity-3month.json', + url: 'https://api.tiles.mapbox.com/v3/mapbox.20110804-hoa-foodinsecurity-3month.json?secure', crossOrigin: 'anonymous' }) }), new ol.layer.Tile({ source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/' + - 'mapbox.world-borders-light.json', + url: 'https://api.tiles.mapbox.com/v3/mapbox.world-borders-light.json?secure', crossOrigin: 'anonymous' }) }) diff --git a/examples/mapbox-vector-tiles-advanced.js b/examples/mapbox-vector-tiles-advanced.js index 174b2badc0..1ca575a98e 100644 --- a/examples/mapbox-vector-tiles-advanced.js +++ b/examples/mapbox-vector-tiles-advanced.js @@ -31,7 +31,7 @@ for (var z = zoomOffset / reuseZoomLevels; z <= 22 / reuseZoomLevels; ++z) { resolutions.push(156543.03392804097 / Math.pow(2, z * reuseZoomLevels)); } function tileUrlFunction(tileCoord) { - return ('http://{a-d}.tiles.mapbox.com/v4/mapbox.mapbox-streets-v6/' + + return ('https://{a-d}.tiles.mapbox.com/v4/mapbox.mapbox-streets-v6/' + '{z}/{x}/{y}.vector.pbf?access_token=' + key) .replace('{z}', String(tileCoord[0] * reuseZoomLevels + zoomOffset)) .replace('{x}', String(tileCoord[1])) diff --git a/examples/mapbox-vector-tiles.js b/examples/mapbox-vector-tiles.js index 2f5ea4f352..ffba7d3152 100644 --- a/examples/mapbox-vector-tiles.js +++ b/examples/mapbox-vector-tiles.js @@ -25,7 +25,7 @@ var map = new ol.Map({ format: new ol.format.MVT(), tileGrid: ol.tilegrid.createXYZ({maxZoom: 22}), tilePixelRatio: 16, - url: 'http://{a-d}.tiles.mapbox.com/v4/mapbox.mapbox-streets-v6/' + + url: 'https://{a-d}.tiles.mapbox.com/v4/mapbox.mapbox-streets-v6/' + '{z}/{x}/{y}.vector.pbf?access_token=' + key }), style: createMapboxStreetsV6Style() diff --git a/examples/min-max-resolution.js b/examples/min-max-resolution.js index b91cf77fca..681c124a42 100644 --- a/examples/min-max-resolution.js +++ b/examples/min-max-resolution.js @@ -18,8 +18,7 @@ var map = new ol.Map({ }), new ol.layer.Tile({ source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/' + - 'mapbox.natural-earth-hypso-bathy.json', + url: 'https://api.tiles.mapbox.com/v3/mapbox.natural-earth-hypso-bathy.json?secure', crossOrigin: 'anonymous' }), minResolution: 2000, diff --git a/examples/popup.js b/examples/popup.js index f25794e7f9..321a325ccf 100644 --- a/examples/popup.js +++ b/examples/popup.js @@ -45,8 +45,7 @@ var map = new ol.Map({ layers: [ new ol.layer.Tile({ source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/' + - 'mapbox.natural-earth-hypso-bathy.json', + url: 'https://api.tiles.mapbox.com/v3/mapbox.natural-earth-hypso-bathy.json?secure', crossOrigin: 'anonymous' }) }) diff --git a/examples/raster.html b/examples/raster.html index 36060205e9..fd9802ea51 100644 --- a/examples/raster.html +++ b/examples/raster.html @@ -20,7 +20,7 @@ docs: >

tags: "raster, pixel" resources: - - http://d3js.org/d3.v3.min.js + - https://d3js.org/d3.v3.min.js cloak: AkGbxXx6tDWf1swIhPJyoAVp06H0s0gDTYslNWWHZ6RoPqMpB9ld5FY1WutX8UoF: Your Bing Maps Key from http://www.bingmapsportal.com/ here --- diff --git a/examples/reprojection-by-code.html b/examples/reprojection-by-code.html index 2bf221b306..083b8c32cb 100644 --- a/examples/reprojection-by-code.html +++ b/examples/reprojection-by-code.html @@ -8,7 +8,7 @@ docs: > in EPSG.io database. tags: "reprojection, projection, proj4js, epsg.io" resources: - - http://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js + - https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js ---
diff --git a/examples/reprojection-image.html b/examples/reprojection-image.html index 0dc98b3a3b..3ad27d1636 100644 --- a/examples/reprojection-image.html +++ b/examples/reprojection-image.html @@ -6,6 +6,6 @@ docs: > This example shows client-side reprojection of single image source. tags: "reprojection, projection, proj4js, image, imagestatic" resources: - - http://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js + - https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js ---
diff --git a/examples/reprojection.html b/examples/reprojection.html index 0964b95638..44ca087edd 100644 --- a/examples/reprojection.html +++ b/examples/reprojection.html @@ -6,7 +6,7 @@ docs: > This example shows client-side raster reprojection between various projections. tags: "reprojection, projection, proj4js, osm, wms, wmts, hidpi" resources: - - http://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js + - https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js ---
diff --git a/examples/reprojection.js b/examples/reprojection.js index f2c8a487d6..d43588c41f 100644 --- a/examples/reprojection.js +++ b/examples/reprojection.js @@ -87,7 +87,7 @@ layers['wms21781'] = new ol.layer.Tile({ 'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale', 'FORMAT': 'image/jpeg' }, - url: 'http://wms.geo.admin.ch/', + url: 'https://wms.geo.admin.ch/', projection: 'EPSG:21781' }) }); diff --git a/examples/resources/layout.css b/examples/resources/layout.css index c140ddc8ba..e04323098e 100644 --- a/examples/resources/layout.css +++ b/examples/resources/layout.css @@ -1,4 +1,4 @@ -@import url(http://fonts.googleapis.com/css?family=Quattrocento+Sans:400,400italic,700); +@import url(https://fonts.googleapis.com/css?family=Quattrocento+Sans:400,400italic,700); body { font-family: 'Quattrocento Sans', sans-serif; diff --git a/examples/scaleline-indiana-east.html b/examples/scaleline-indiana-east.html index 998bd5fc89..a43eb646b6 100644 --- a/examples/scaleline-indiana-east.html +++ b/examples/scaleline-indiana-east.html @@ -6,6 +6,6 @@ docs: > This example shows client-side reprojection of OpenStreetMap to NAD83 Indiana East, including a ScaleLine control with US units. tags: "reprojection, projection, openstreetmap, nad83, tile, scaleline" resources: - - http://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js + - https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js ---
diff --git a/examples/semi-transparent-layer.js b/examples/semi-transparent-layer.js index a981e0d185..b0ffbf16c4 100644 --- a/examples/semi-transparent-layer.js +++ b/examples/semi-transparent-layer.js @@ -13,7 +13,7 @@ var map = new ol.Map({ }), new ol.layer.Tile({ source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/mapbox.va-quake-aug.json', + url: 'https://api.tiles.mapbox.com/v3/mapbox.va-quake-aug.json?secure', crossOrigin: 'anonymous' }) }) diff --git a/examples/sphere-mollweide.html b/examples/sphere-mollweide.html index 3ced0502ee..c0b7ae62cf 100644 --- a/examples/sphere-mollweide.html +++ b/examples/sphere-mollweide.html @@ -6,6 +6,6 @@ docs: > Example of a Sphere Mollweide map with a Graticule component. tags: "graticule, Mollweide, projection, proj4js" resources: - - http://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js + - https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js ---
diff --git a/examples/static-image.js b/examples/static-image.js index c365555fb5..9a34294e77 100644 --- a/examples/static-image.js +++ b/examples/static-image.js @@ -21,7 +21,7 @@ var map = new ol.Map({ new ol.layer.Image({ source: new ol.source.ImageStatic({ attributions: '© xkcd', - url: 'http://imgs.xkcd.com/comics/online_communities.png', + url: 'https://imgs.xkcd.com/comics/online_communities.png', projection: projection, imageExtent: extent }) diff --git a/examples/tile-load-events.js b/examples/tile-load-events.js index abf75deec6..03fbd2c502 100644 --- a/examples/tile-load-events.js +++ b/examples/tile-load-events.js @@ -78,7 +78,7 @@ Progress.prototype.hide = function() { var progress = new Progress(document.getElementById('progress')); var source = new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/mapbox.world-bright.json', + url: 'https://api.tiles.mapbox.com/v3/mapbox.world-bright.json?secure', crossOrigin: 'anonymous' }); diff --git a/examples/tilejson.js b/examples/tilejson.js index 14c2f02c39..97322e2d4c 100644 --- a/examples/tilejson.js +++ b/examples/tilejson.js @@ -8,7 +8,7 @@ var map = new ol.Map({ layers: [ new ol.layer.Tile({ source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/mapbox.geography-class.json', + url: 'https://api.tiles.mapbox.com/v3/mapbox.geography-class.json?secure', crossOrigin: 'anonymous' }) }) diff --git a/examples/tileutfgrid.js b/examples/tileutfgrid.js index 217c073c9a..92c69a2aa2 100644 --- a/examples/tileutfgrid.js +++ b/examples/tileutfgrid.js @@ -9,13 +9,13 @@ var key = 'pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiRk1kMWZaSSJ9.E5BkluenyWQMsBLsuByrmg'; var mapLayer = new ol.layer.Tile({ source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v4/mapbox.geography-class.json?access_token=' + key + url: 'https://api.tiles.mapbox.com/v4/mapbox.geography-class.json?secure&access_token=' + key }) }); var gridSource = new ol.source.TileUTFGrid({ - url: 'http://api.tiles.mapbox.com/v4/mapbox.geography-class.json?access_token=' + key + url: 'https://api.tiles.mapbox.com/v4/mapbox.geography-class.json?secure&access_token=' + key }); var gridLayer = new ol.layer.Tile({source: gridSource}); diff --git a/examples/topojson.js b/examples/topojson.js index 551636788a..4337c37885 100644 --- a/examples/topojson.js +++ b/examples/topojson.js @@ -12,7 +12,7 @@ goog.require('ol.style.Style'); var raster = new ol.layer.Tile({ source: new ol.source.TileJSON({ - url: 'http://api.tiles.mapbox.com/v3/mapbox.world-dark.json' + url: 'https://api.tiles.mapbox.com/v3/mapbox.world-dark.json?secure' }) }); diff --git a/examples/vector-esri-edit.js b/examples/vector-esri-edit.js index 71eae1c9db..055e1f9f85 100644 --- a/examples/vector-esri-edit.js +++ b/examples/vector-esri-edit.js @@ -57,7 +57,7 @@ var raster = new ol.layer.Tile({ source: new ol.source.XYZ({ attributions: 'Tiles © ArcGIS', - url: 'http://server.arcgisonline.com/ArcGIS/rest/services/' + + url: 'https://server.arcgisonline.com/ArcGIS/rest/services/' + 'World_Topo_Map/MapServer/tile/{z}/{y}/{x}' }) }); diff --git a/examples/vector-esri.js b/examples/vector-esri.js index 28a56a55fb..deda97931b 100644 --- a/examples/vector-esri.js +++ b/examples/vector-esri.js @@ -99,7 +99,7 @@ var raster = new ol.layer.Tile({ source: new ol.source.XYZ({ attributions: 'Tiles © ArcGIS', - url: 'http://server.arcgisonline.com/ArcGIS/rest/services/' + + url: 'https://server.arcgisonline.com/ArcGIS/rest/services/' + 'World_Topo_Map/MapServer/tile/{z}/{y}/{x}' }) }); diff --git a/examples/wms-custom-proj.js b/examples/wms-custom-proj.js index 32a333edd6..549f7100f4 100644 --- a/examples/wms-custom-proj.js +++ b/examples/wms-custom-proj.js @@ -45,7 +45,7 @@ var layers = [ new ol.layer.Tile({ extent: extent, source: new ol.source.TileWMS({ - url: 'http://wms.geo.admin.ch/', + url: 'https://wms.geo.admin.ch/', crossOrigin: 'anonymous', attributions: '© Pixelmap 1:1000000 / geo.admin.ch', @@ -59,7 +59,7 @@ var layers = [ new ol.layer.Tile({ extent: extent, source: new ol.source.TileWMS({ - url: 'http://wms.geo.admin.ch/', + url: 'https://wms.geo.admin.ch/', crossOrigin: 'anonymous', attributions: '© National parks / geo.admin.ch', diff --git a/examples/wms-image-custom-proj.html b/examples/wms-image-custom-proj.html index f2a9166076..db0994e9b4 100644 --- a/examples/wms-image-custom-proj.html +++ b/examples/wms-image-custom-proj.html @@ -6,7 +6,7 @@ docs: > With [Proj4js](http://proj4js.org/) integration, OpenLayers can transform coordinates between arbitrary projections. tags: "wms, single image, proj4js, projection" resources: - - http://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js - - http://epsg.io/21781-1753.js + - https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js + - https://epsg.io/21781-1753.js ---
diff --git a/examples/wms-image-custom-proj.js b/examples/wms-image-custom-proj.js index 2b754d2d19..78464b3dbe 100644 --- a/examples/wms-image-custom-proj.js +++ b/examples/wms-image-custom-proj.js @@ -33,7 +33,7 @@ var layers = [ new ol.layer.Image({ extent: extent, source: new ol.source.ImageWMS({ - url: 'http://wms.geo.admin.ch/', + url: 'https://wms.geo.admin.ch/', crossOrigin: 'anonymous', attributions: '© Pixelmap 1:1000000 / geo.admin.ch', @@ -47,7 +47,7 @@ var layers = [ new ol.layer.Image({ extent: extent, source: new ol.source.ImageWMS({ - url: 'http://wms.geo.admin.ch/', + url: 'https://wms.geo.admin.ch/', crossOrigin: 'anonymous', attributions: '© National parks / geo.admin.ch', diff --git a/examples/wms-no-proj.js b/examples/wms-no-proj.js index f5d09752e5..f39dc40fd3 100644 --- a/examples/wms-no-proj.js +++ b/examples/wms-no-proj.js @@ -17,7 +17,7 @@ var layers = [ 'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale', 'FORMAT': 'image/jpeg' }, - url: 'http://wms.geo.admin.ch/' + url: 'https://wms.geo.admin.ch/' }) }), new ol.layer.Image({ @@ -27,7 +27,7 @@ var layers = [ crossOrigin: 'anonymous', params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'}, serverType: 'mapserver', - url: 'http://wms.geo.admin.ch/' + url: 'https://wms.geo.admin.ch/' }) }) ]; diff --git a/examples/wmts-hidpi.js b/examples/wmts-hidpi.js index 386b8ad609..747b6f634c 100644 --- a/examples/wmts-hidpi.js +++ b/examples/wmts-hidpi.js @@ -6,7 +6,7 @@ goog.require('ol.layer.Tile'); goog.require('ol.source.WMTS'); -var capabilitiesUrl = 'http://www.basemap.at/wmts/1.0.0/WMTSCapabilities.xml'; +var capabilitiesUrl = 'https://www.basemap.at/wmts/1.0.0/WMTSCapabilities.xml'; // HiDPI support: // * Use 'bmaphidpi' layer (pixel ratio 2) for device pixel ratio > 1 diff --git a/examples/wmts-ign.js b/examples/wmts-ign.js index fb4a332a53..2843c21451 100644 --- a/examples/wmts-ign.js +++ b/examples/wmts-ign.js @@ -43,7 +43,7 @@ var tileGrid = new ol.tilegrid.WMTS({ var key = '2mqbg0z6cx7ube8gsou10nrt'; var ign_source = new ol.source.WMTS({ - url: 'http://wxs.ign.fr/' + key + '/wmts', + url: 'https://wxs.ign.fr/' + key + '/wmts', layer: 'GEOGRAPHICALGRIDSYSTEMS.MAPS', matrixSet: 'PM', format: 'image/jpeg', diff --git a/examples/wmts.js b/examples/wmts.js index eae0196561..08f8921138 100644 --- a/examples/wmts.js +++ b/examples/wmts.js @@ -31,7 +31,7 @@ var map = new ol.Map({ source: new ol.source.WMTS({ attributions: 'Tiles © ArcGIS', - url: 'http://services.arcgisonline.com/arcgis/rest/' + + url: 'https://services.arcgisonline.com/arcgis/rest/' + 'services/Demographics/USA_Population_Density/MapServer/WMTS/', layer: '0', matrixSet: 'EPSG:3857', diff --git a/examples/xyz-esri.js b/examples/xyz-esri.js index 168f12ad65..1320a3f445 100644 --- a/examples/xyz-esri.js +++ b/examples/xyz-esri.js @@ -17,7 +17,7 @@ var map = new ol.Map({ new ol.layer.Tile({ source: new ol.source.XYZ({ attributions: [attribution], - url: 'http://server.arcgisonline.com/ArcGIS/rest/services/' + + url: 'https://server.arcgisonline.com/ArcGIS/rest/services/' + 'World_Topo_Map/MapServer/tile/{z}/{y}/{x}' }) })