diff --git a/DEVELOPING.md b/DEVELOPING.md index 2bbbf0555b..a900bc8c21 100644 --- a/DEVELOPING.md +++ b/DEVELOPING.md @@ -77,7 +77,7 @@ Then, just point your browser in your bro Run examples against the `ol.js` standalone build: The examples can also be run against the `ol.js` standalone build, just like -the examples [hosted](http://openlayers.org/en/master/examples/) on GitHub. +the examples [hosted](https://openlayers.org/en/master/examples/) on GitHub. Start by executing the `host-examples` build target: $ make host-examples diff --git a/README.md b/README.md index f8ba0bcd9c..976db69b67 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ [![Coverage Status](https://coveralls.io/repos/openlayers/ol3/badge.svg?branch=master)](https://coveralls.io/r/openlayers/ol3?branch=master) [![OSGeo Project](https://img.shields.io/badge/OSGeo-Project-brightgreen.svg)](http://osgeo.org/) -[OpenLayers 3](http://openlayers.org/) is a high-performance, feature-packed library for creating interactive maps on the web. It can display map tiles, vector data and markers loaded from any source on any web page. OpenLayers has been developed to further the use of geographic information of all kinds. It is completely free, Open Source JavaScript, released under the 2-clause BSD License (also known as the FreeBSD). +[OpenLayers 3](https://openlayers.org/) is a high-performance, feature-packed library for creating interactive maps on the web. It can display map tiles, vector data and markers loaded from any source on any web page. OpenLayers has been developed to further the use of geographic information of all kinds. It is completely free, Open Source JavaScript, released under the 2-clause BSD License (also known as the FreeBSD). ## Getting Started -- Download the [latest release](http://openlayers.org/download/) +- Download the [latest release](https://openlayers.org/download/) - Install with npm: `npm install openlayers` - Clone the repo: `git clone git@github.com:openlayers/ol3.git` @@ -18,7 +18,7 @@ OpenLayers runs on all modern browsers that support [HTML5](https://html.spec.wh ## Documentation -Check out the [hosted examples](http://openlayers.org/en/latest/examples/), the [workshop](http://openlayers.org/workshop/) or the [API documentation](http://openlayers.org/en/latest/apidoc/). +Check out the [hosted examples](https://openlayers.org/en/latest/examples/), the [workshop](https://openlayers.org/workshop/) or the [API documentation](https://openlayers.org/en/latest/apidoc/). ## Bugs diff --git a/changelog/upgrade-notes.md b/changelog/upgrade-notes.md index 5aa85d168f..ab0bdc1cfd 100644 --- a/changelog/upgrade-notes.md +++ b/changelog/upgrade-notes.md @@ -70,7 +70,7 @@ The DOM renderer has been removed. Instead, the Canvas renderer should be used. #### Changes in the way assertions are handled -Previously, minified builds of the library did not have any assertions. This caused applications to fail silently or with cryptic stack traces. Starting with this release, developers get notified of many runtime errors through the new `ol.AssertionError`. This error has a `code` property. The meaning of the code can be found on http://openlayers.org/en/latest/doc/errors/. There are additional console assertion checks in debug mode when the `goog.DEBUG` compiler flag is `true`. As this is `true` by default, it is recommended that those creating custom builds set this to `false` so these assertions are stripped.' +Previously, minified builds of the library did not have any assertions. This caused applications to fail silently or with cryptic stack traces. Starting with this release, developers get notified of many runtime errors through the new `ol.AssertionError`. This error has a `code` property. The meaning of the code can be found on https://openlayers.org/en/latest/doc/errors/. There are additional console assertion checks in debug mode when the `goog.DEBUG` compiler flag is `true`. As this is `true` by default, it is recommended that those creating custom builds set this to `false` so these assertions are stripped.' #### Removal of `ol.ENABLE_NAMED_COLORS` @@ -179,7 +179,7 @@ var v3source = new ol.source.TileUTFGrid({ #### Internet Explorer 9 support -As of this release, OpenLayers requires a `classList` polyfill for IE 9 support. See http://cdn.polyfill.io/v2/docs/features#Element_prototype_classList. +As of this release, OpenLayers requires a `classList` polyfill for IE 9 support. See https://cdn.polyfill.io/v2/docs/features#Element_prototype_classList. #### Immediate rendering API @@ -228,7 +228,7 @@ The default cache size is `2048`. #### Internet Explorer 9 support -As of this release, OpenLayers requires a `requestAnimationFrame`/`cancelAnimationFrame` polyfill for IE 9 support. See http://cdn.polyfill.io/v2/docs/features/#requestAnimationFrame. +As of this release, OpenLayers requires a `requestAnimationFrame`/`cancelAnimationFrame` polyfill for IE 9 support. See https://cdn.polyfill.io/v2/docs/features/#requestAnimationFrame. #### Layer pre-/postcompose event changes @@ -546,7 +546,7 @@ now specify an `extent` instead of `widths`. These settings are used to restrict }); ``` - See http://openlayers.org/en/master/examples/vector-layer.html for a real example. + See https://openlayers.org/en/master/examples/vector-layer.html for a real example. Note that you no longer need to set a `projection` on the source! @@ -568,7 +568,7 @@ now specify an `extent` instead of `widths`. These settings are used to restrict The above code uses jQuery to send an Ajax request, but you can obviously use any Ajax library. - See http://openlayers.org/en/master/examples/igc.html for a real example. + See https://openlayers.org/en/master/examples/igc.html for a real example. * Note about KML @@ -626,9 +626,9 @@ now specify an `extent` instead of `widths`. These settings are used to restrict }); ``` - See http://openlayers.org/en/master/examples/vector-osm.html for a real example. + See https://openlayers.org/en/master/examples/vector-osm.html for a real example. -* The experimental `ol.loadingstrategy.createTile` function has been renamed to `ol.loadingstrategy.tile`. The signature of the function hasn't changed. See http://openlayers.org/en/master/examples/vector-osm.html for an example. +* The experimental `ol.loadingstrategy.createTile` function has been renamed to `ol.loadingstrategy.tile`. The signature of the function hasn't changed. See https://openlayers.org/en/master/examples/vector-osm.html for an example. #### Change to `ol.style.Icon` diff --git a/changelog/v3.14.0.md b/changelog/v3.14.0.md index 0097dc92b9..24efc99c6e 100644 --- a/changelog/v3.14.0.md +++ b/changelog/v3.14.0.md @@ -17,7 +17,7 @@ The v3.14.0 release includes features and fixes from 93 pull requests since the #### Internet Explorer 9 support -As of this release, OpenLayers requires a `requestAnimationFrame`/`cancelAnimationFrame` polyfill for IE 9 support. See http://cdn.polyfill.io/v2/docs/features/#requestAnimationFrame. +As of this release, OpenLayers requires a `requestAnimationFrame`/`cancelAnimationFrame` polyfill for IE 9 support. See https://cdn.polyfill.io/v2/docs/features/#requestAnimationFrame. #### Layer pre-/postcompose event changes diff --git a/changelog/v3.15.0.md b/changelog/v3.15.0.md index e06539f1d3..5e5c161859 100644 --- a/changelog/v3.15.0.md +++ b/changelog/v3.15.0.md @@ -18,7 +18,7 @@ The v3.15.0 release includes features and fixes from 136 pull requests since the #### Internet Explorer 9 support -As of this release, OpenLayers requires a `classList` polyfill for IE 9 support. See http://cdn.polyfill.io/v2/docs/features#Element_prototype_classList. +As of this release, OpenLayers requires a `classList` polyfill for IE 9 support. See https://cdn.polyfill.io/v2/docs/features#Element_prototype_classList. #### Immediate rendering API diff --git a/changelog/v3.18.0.md b/changelog/v3.18.0.md index f977d4f976..ad1de8109d 100644 --- a/changelog/v3.18.0.md +++ b/changelog/v3.18.0.md @@ -14,7 +14,7 @@ The v3.18.0 release includes features and fixes from almost 120 pull requests si #### Changes in the way assertions are handled -Previously, minified builds of the library did not have any assertions. This caused applications to fail silently or with cryptic stack traces. Starting with this release, developers get notified of many runtime errors through the new `ol.AssertionError`. This error has a `code` property. The meaning of the code can be found on http://openlayers.org/en/latest/doc/errors/. There are additional console assertion checks in debug mode when the `goog.DEBUG` compiler flag is `true`. As this is `true` by default, it is recommended that those creating custom builds set this to `false` so these assertions are stripped.' +Previously, minified builds of the library did not have any assertions. This caused applications to fail silently or with cryptic stack traces. Starting with this release, developers get notified of many runtime errors through the new `ol.AssertionError`. This error has a `code` property. The meaning of the code can be found on https://openlayers.org/en/latest/doc/errors/. There are additional console assertion checks in debug mode when the `goog.DEBUG` compiler flag is `true`. As this is `true` by default, it is recommended that those creating custom builds set this to `false` so these assertions are stripped.' #### Removal of `ol.ENABLE_NAMED_COLORS` diff --git a/changelog/v3.2.0.md b/changelog/v3.2.0.md index 6c55abd1d1..316ded23a9 100644 --- a/changelog/v3.2.0.md +++ b/changelog/v3.2.0.md @@ -2,7 +2,7 @@ ## Summary -The 3.1.0 release includes 70 merged pull requests since 3.1.0. Of note, the KML format [now parses `NetworkingLink` tags](https://github.com/openlayers/ol3/pull/3171). The [measure example](http://openlayers.org/en/v3.2.0/examples/measure.html) was [reworked](https://github.com/openlayers/ol3/pull/3206) to display measurements and help messages while drawing. A WMTS GetCapabilities format was [added](https://github.com/openlayers/ol3/pull/3026). The WebGL renderer [now supports feature hit detection](https://github.com/openlayers/ol3/pull/3065) (on point features). And you can now [detect](https://github.com/openlayers/ol3/pull/3172) features/colored pixels on image and tile layers! See the full list of [changes](#changes) below. +The 3.1.0 release includes 70 merged pull requests since 3.1.0. Of note, the KML format [now parses `NetworkingLink` tags](https://github.com/openlayers/ol3/pull/3171). The [measure example](https://openlayers.org/en/v3.2.0/examples/measure.html) was [reworked](https://github.com/openlayers/ol3/pull/3206) to display measurements and help messages while drawing. A WMTS GetCapabilities format was [added](https://github.com/openlayers/ol3/pull/3026). The WebGL renderer [now supports feature hit detection](https://github.com/openlayers/ol3/pull/3065) (on point features). And you can now [detect](https://github.com/openlayers/ol3/pull/3172) features/colored pixels on image and tile layers! See the full list of [changes](#changes) below. ## Upgrade notes diff --git a/changelog/v3.5.0.md b/changelog/v3.5.0.md index 65ada6311e..ca32fae572 100644 --- a/changelog/v3.5.0.md +++ b/changelog/v3.5.0.md @@ -53,7 +53,7 @@ The 3.5.0 release includes features and fixes from a whopping 129 pull requests }); ``` - See http://openlayers.org/en/master/examples/vector-layer.html for a real example. + See https://openlayers.org/en/master/examples/vector-layer.html for a real example. Note that you no longer need to set a `projection` on the source! @@ -75,7 +75,7 @@ The 3.5.0 release includes features and fixes from a whopping 129 pull requests The above code uses jQuery to send an Ajax request, but you can obviously use any Ajax library. - See http://openlayers.org/en/master/examples/igc.html for a real example. + See https://openlayers.org/en/master/examples/igc.html for a real example. * Note about KML @@ -133,9 +133,9 @@ The 3.5.0 release includes features and fixes from a whopping 129 pull requests }); ``` - See http://openlayers.org/en/master/examples/vector-osm.html for a real example. + See https://openlayers.org/en/master/examples/vector-osm.html for a real example. -* The experimental `ol.loadingstrategy.createTile` function has been renamed to `ol.loadingstrategy.tile`. The signature of the function hasn't changed. See http://openlayers.org/en/master/examples/vector-osm.html for an example. +* The experimental `ol.loadingstrategy.createTile` function has been renamed to `ol.loadingstrategy.tile`. The signature of the function hasn't changed. See https://openlayers.org/en/master/examples/vector-osm.html for an example. ### Change to `ol.style.Icon` diff --git a/config/examples/example.html b/config/examples/example.html index 2726943767..eb91cec622 100644 --- a/config/examples/example.html +++ b/config/examples/example.html @@ -66,16 +66,16 @@ - +
<!DOCTYPE html>
 <html>
   <head>
     <title>{{ title }}</title>
-    <link rel="stylesheet" href="http://openlayers.org/en/v{{ olVersion }}/css/ol.css" type="text/css">
+    <link rel="stylesheet" href="https://openlayers.org/en/v{{ olVersion }}/css/ol.css" type="text/css">
     <!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
-    <script src="http://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
-    <script src="http://openlayers.org/en/v{{ olVersion }}/build/ol.js"></script>{{#if extraHead.remote}}
+    <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
+    <script src="https://openlayers.org/en/v{{ olVersion }}/build/ol.js"></script>{{#if extraHead.remote}}
 {{ indent extraHead.remote spaces=4 }}{{/if}}{{#if css.source}}
     <style>
 {{ indent css.source spaces=6 }}    </style>{{/if}}
diff --git a/doc/faq.md b/doc/faq.md
index 73ae94a4d3..2c9bdc0c84 100644
--- a/doc/faq.md
+++ b/doc/faq.md
@@ -77,7 +77,7 @@ var map = new ol.Map({
 var swissProjection = new ol.proj.Projection({
   code: 'EPSG:21781',
   // The extent is used to determine zoom level 0. Recommended values for a
-  // projection's validity extent can be found at http://epsg.io/.
+  // projection's validity extent can be found at https://epsg.io/.
   extent: [485869.5728, 76443.1884, 837076.5648, 299941.7864],
   units: 'm'
 });
@@ -94,7 +94,7 @@ var map = new ol.Map({
 ```
 
 We recommend to lookup parameters of your projection (like the validity extent)
-over at [epsg.io](http://epsg.io/).
+over at [epsg.io](https://epsg.io/).
 
 
 ## Why is my map centered on the gulf of guinea (or africa, the ocean, null-island)?
diff --git a/doc/quickstart.hbs b/doc/quickstart.hbs
index 0b6d81cd73..da8850b00b 100644
--- a/doc/quickstart.hbs
+++ b/doc/quickstart.hbs
@@ -13,14 +13,14 @@ Below you'll find a complete working example.  Create a new file, copy in the co
 
 
   
-    
+    
     
-    
+    
     OpenLayers 3 example
   
   
@@ -55,7 +55,7 @@ To include a map a web page you will need 3 things:
 ### Include OpenLayers
 
 ```xml
-  
+  
 ```
 
 The first part is to include the JavaScript library. For the purpose of this tutorial, here we simply point to the openlayers.org website to get the whole library. In a production environment, we would build a custom version of the library including only the module needed for our application.
@@ -63,7 +63,7 @@ The first part is to include the JavaScript library. For the purpose of this tut
 **Optional:** If the application is intended to run on old platforms like Internet Explorer or Android 4.x, another script needs to be included before OpenLayers:
 
 ```xml
-  
+  
 ```
 
 
diff --git a/doc/tutorials/custom-builds.md b/doc/tutorials/custom-builds.md
index a9c2a41665..8eeb13bbea 100644
--- a/doc/tutorials/custom-builds.md
+++ b/doc/tutorials/custom-builds.md
@@ -95,7 +95,7 @@ var map = new ol.Map({
 });
 ```
 
-Note that this JavaScript code corresponds to OpenLayers 3's [`simple`](http://openlayers.org/en/master/examples/simple.html) example.
+Note that this JavaScript code corresponds to OpenLayers 3's [`simple`](https://openlayers.org/en/master/examples/simple.html) example.
 
 You are now ready to create your first OpenLayers 3 build. Use the following command to create the build:
 
@@ -180,7 +180,7 @@ Note that `build.js` currently requires you to enter an output file and will wri
 
 ## A more complicated example
 
-Now let's try a more complicated example: [`heatmaps-earthquakes`](http://openlayers.org/en/master/examples/heatmap-earthquakes.html). The build configuration file looks like this:
+Now let's try a more complicated example: [`heatmaps-earthquakes`](https://openlayers.org/en/master/examples/heatmap-earthquakes.html). The build configuration file looks like this:
 
 ```json
 {
diff --git a/doc/tutorials/raster-reprojection.md b/doc/tutorials/raster-reprojection.md
index 473b440850..1ef0a0e847 100644
--- a/doc/tutorials/raster-reprojection.md
+++ b/doc/tutorials/raster-reprojection.md
@@ -10,7 +10,7 @@ Transformation of the map projections of the image happens directly in a web bro
 The view in any Proj4js supported coordinate reference system is possible and previously incompatible layers can now be combined and overlaid.
 
 # Usage
-The API usage is very simple. Just specify proper projection (using [EPSG](http://epsg.io) code) on `ol.View`:
+The API usage is very simple. Just specify proper projection (using [EPSG](https://epsg.io) code) on `ol.View`:
 ``` javascript
 var map = new ol.Map({
   target: 'map',
@@ -35,14 +35,14 @@ var map = new ol.Map({
 If a source (based on `ol.source.TileImage` or `ol.source.Image`) has a projection different from the current `ol.View`’s projection then the reprojection happens automatically under the hood.
 
 ### Examples
-- [Raster reprojection demo](http://openlayers.org/en/master/examples/reprojection.html)
-- [OpenStreetMap to WGS84 reprojection](http://openlayers.org/en/master/examples/reprojection-wgs84.html)
-- [Reprojection with EPSG.io database search](http://openlayers.org/en/master/examples/reprojection-by-code.html)
-- [Image reprojection](http://openlayers.org/en/master/examples/reprojection-image.html)
+- [Raster reprojection demo](https://openlayers.org/en/master/examples/reprojection.html)
+- [OpenStreetMap to WGS84 reprojection](https://openlayers.org/en/master/examples/reprojection-wgs84.html)
+- [Reprojection with EPSG.io database search](https://openlayers.org/en/master/examples/reprojection-by-code.html)
+- [Image reprojection](https://openlayers.org/en/master/examples/reprojection-image.html)
 
 ### Custom projection
 The easiest way to use a custom projection is to add the [Proj4js](http://proj4js.org/) library to your project and then define the projection using a proj4 definition string.
-Following example shows definition of a [British National Grid](http://epsg.io/27700):
+Following example shows definition of a [British National Grid](https://epsg.io/27700):
 
 ``` html
 
@@ -122,7 +122,7 @@ Although this is mathematically correct behavior of the inverse transformation,
 A possible general solution would be to calculate the forward transformation for every vertex as well - but this would significantly decrease performance (especially for computationally expensive transformations).
 
 Therefore a recommended workaround is to define a proper visibility extent on the `ol.layer.Tile` in the view projection.
-Setting such a limit is demonstrated in the [reprojection demo example](http://openlayers.org/en/master/examples/reprojection.html).
+Setting such a limit is demonstrated in the [reprojection demo example](https://openlayers.org/en/master/examples/reprojection.html).
 
 ### Resolution calculation
 When determining source tiles to load, the ideal source resolution needs to be calculated.
diff --git a/examples/arcgis-image.js b/examples/arcgis-image.js
index 00a7787ef6..4e1068f606 100644
--- a/examples/arcgis-image.js
+++ b/examples/arcgis-image.js
@@ -5,7 +5,7 @@ goog.require('ol.layer.Image');
 goog.require('ol.source.OSM');
 goog.require('ol.source.ImageArcGISRest');
 
-var url = 'http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/' +
+var url = 'https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/' +
     'Specialty/ESRI_StateCityHighway_USA/MapServer';
 
 var layers = [
diff --git a/examples/arcgis-tiled.js b/examples/arcgis-tiled.js
index b04042baf9..568258f624 100644
--- a/examples/arcgis-tiled.js
+++ b/examples/arcgis-tiled.js
@@ -4,7 +4,7 @@ goog.require('ol.layer.Tile');
 goog.require('ol.source.OSM');
 goog.require('ol.source.TileArcGISRest');
 
-var url = 'http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/' +
+var url = 'https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/' +
     'Specialty/ESRI_StateCityHighway_USA/MapServer';
 
 var layers = [
diff --git a/examples/custom-icon.js b/examples/custom-icon.js
index 49de67de59..36e6788159 100644
--- a/examples/custom-icon.js
+++ b/examples/custom-icon.js
@@ -4,7 +4,7 @@ goog.require('ol.layer.Tile');
 goog.require('ol.source.OSM');
 
 var logoElement = document.createElement('a');
-logoElement.href = 'http://www.osgeo.org/';
+logoElement.href = 'https://www.osgeo.org/';
 logoElement.target = '_blank';
 
 var logoImage = document.createElement('img');
diff --git a/examples/data/kml/2012-02-10.kml b/examples/data/kml/2012-02-10.kml
index ad7b112f4d..4ad89f7621 100644
--- a/examples/data/kml/2012-02-10.kml
+++ b/examples/data/kml/2012-02-10.kml
@@ -4,7 +4,7 @@
     Created from OpenStreetMap data. Renderer v0.5
     
                     
+                        xlink:href="https://services.arcgisonline.com/arcgis/rest/services/Demographics/USA_Population_Density/MapServer/WMTS?">
                         
                             
                                 KVP
@@ -39,7 +39,7 @@
             
                 
                     
+                        xlink:href="https://services.arcgisonline.com/arcgis/rest/services/Demographics/USA_Population_Density/MapServer/WMTS/tile/1.0.0/">
                         
                             
                                 RESTful
@@ -47,7 +47,7 @@
                         
                     
                     
+                        xlink:href="https://services.arcgisonline.com/arcgis/rest/services/Demographics/USA_Population_Density/MapServer/WMTS?">
                         
                             
                                 KVP
@@ -84,7 +84,7 @@
                 GoogleMapsCompatible
             
             
         
         
@@ -403,6 +403,6 @@
         
     
     
 
diff --git a/test/spec/ol/source/wmts.test.js b/test/spec/ol/source/wmts.test.js
index 471e673ab3..8102989336 100644
--- a/test/spec/ol/source/wmts.test.js
+++ b/test/spec/ol/source/wmts.test.js
@@ -176,7 +176,7 @@ describe('ol.source.WMTS', function() {
           expect(options.urls).to.be.an('array');
           expect(options.urls).to.have.length(1);
           expect(options.urls[0]).to.be.eql(
-             'http://services.arcgisonline.com/arcgis/rest/services/' +
+             'https://services.arcgisonline.com/arcgis/rest/services/' +
              'Demographics/USA_Population_Density/MapServer/WMTS?');
         });
 
@@ -191,7 +191,7 @@ describe('ol.source.WMTS', function() {
           expect(options.urls).to.be.an('array');
           expect(options.urls).to.have.length(1);
           expect(options.urls[0]).to.be.eql(
-             'http://services.arcgisonline.com/arcgis/rest/services/' +
+             'https://services.arcgisonline.com/arcgis/rest/services/' +
              'Demographics/USA_Population_Density/MapServer/WMTS/' +
              'tile/1.0.0/Demographics_USA_Population_Density/' +
              '{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png');