Use https for openlayers.org
This commit is contained in:
@@ -77,7 +77,7 @@ Then, just point your browser <http://localhost:3000/build/examples> in your bro
|
|||||||
Run examples against the `ol.js` standalone build:
|
Run examples against the `ol.js` standalone build:
|
||||||
|
|
||||||
The examples can also be run against the `ol.js` standalone build, just like
|
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:
|
Start by executing the `host-examples` build target:
|
||||||
|
|
||||||
$ make host-examples
|
$ make host-examples
|
||||||
|
|||||||
@@ -4,11 +4,11 @@
|
|||||||
[](https://coveralls.io/r/openlayers/ol3?branch=master)
|
[](https://coveralls.io/r/openlayers/ol3?branch=master)
|
||||||
[](http://osgeo.org/)
|
[](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
|
## Getting Started
|
||||||
|
|
||||||
- Download the [latest release](http://openlayers.org/download/)
|
- Download the [latest release](https://openlayers.org/download/)
|
||||||
- Install with npm: `npm install openlayers`
|
- Install with npm: `npm install openlayers`
|
||||||
- Clone the repo: `git clone git@github.com:openlayers/ol3.git`
|
- 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
|
## 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
|
## Bugs
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ The DOM renderer has been removed. Instead, the Canvas renderer should be used.
|
|||||||
|
|
||||||
#### Changes in the way assertions are handled
|
#### 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`
|
#### Removal of `ol.ENABLE_NAMED_COLORS`
|
||||||
|
|
||||||
@@ -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!
|
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.
|
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
|
* 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`
|
#### Change to `ol.style.Icon`
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
#### 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`
|
#### Removal of `ol.ENABLE_NAMED_COLORS`
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Summary
|
## 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
|
## Upgrade notes
|
||||||
|
|
||||||
|
|||||||
@@ -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!
|
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.
|
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
|
* 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`
|
### Change to `ol.style.Icon`
|
||||||
|
|
||||||
|
|||||||
@@ -66,16 +66,16 @@
|
|||||||
<textarea class="hidden" name="css">{{ css.source }}</textarea>
|
<textarea class="hidden" name="css">{{ css.source }}</textarea>
|
||||||
<textarea class="hidden" name="html">{{ contents }}</textarea>
|
<textarea class="hidden" name="html">{{ contents }}</textarea>
|
||||||
<input type="hidden" name="wrap" value="l">
|
<input type="hidden" name="wrap" value="l">
|
||||||
<input type="hidden" name="resources" value="http://openlayers.org/en/v{{ olVersion }}/css/ol.css,http://openlayers.org/en/v{{ olVersion }}/build/ol.js{{ extraResources }}">
|
<input type="hidden" name="resources" value="https://openlayers.org/en/v{{ olVersion }}/css/ol.css,https://openlayers.org/en/v{{ olVersion }}/build/ol.js{{ extraResources }}">
|
||||||
</form>
|
</form>
|
||||||
<pre><code id="example-source" class="language-markup"><!DOCTYPE html>
|
<pre><code id="example-source" class="language-markup"><!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>{{ title }}</title>
|
<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 -->
|
<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
|
||||||
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
|
<script src="https://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://openlayers.org/en/v{{ olVersion }}/build/ol.js"></script>{{#if extraHead.remote}}
|
||||||
{{ indent extraHead.remote spaces=4 }}{{/if}}{{#if css.source}}
|
{{ indent extraHead.remote spaces=4 }}{{/if}}{{#if css.source}}
|
||||||
<style>
|
<style>
|
||||||
{{ indent css.source spaces=6 }} </style>{{/if}}
|
{{ indent css.source spaces=6 }} </style>{{/if}}
|
||||||
|
|||||||
@@ -13,14 +13,14 @@ Below you'll find a complete working example. Create a new file, copy in the co
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="http://openlayers.org/en/{{ latest }}/css/ol.css" type="text/css">
|
<link rel="stylesheet" href="https://openlayers.org/en/{{ latest }}/css/ol.css" type="text/css">
|
||||||
<style>
|
<style>
|
||||||
.map {
|
.map {
|
||||||
height: 400px;
|
height: 400px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script src="http://openlayers.org/en/{{ latest }}/build/ol.js" type="text/javascript"></script>
|
<script src="https://openlayers.org/en/{{ latest }}/build/ol.js" type="text/javascript"></script>
|
||||||
<title>OpenLayers 3 example</title>
|
<title>OpenLayers 3 example</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -55,7 +55,7 @@ To include a map a web page you will need 3 things:
|
|||||||
### Include OpenLayers
|
### Include OpenLayers
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<script src="http://openlayers.org/en/{{ latest }}/build/ol.js" type="text/javascript"></script>
|
<script src="https://openlayers.org/en/{{ latest }}/build/ol.js" type="text/javascript"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|||||||
@@ -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:
|
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
|
## 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
|
```json
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,10 +35,10 @@ 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.
|
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
|
### Examples
|
||||||
- [Raster reprojection demo](http://openlayers.org/en/master/examples/reprojection.html)
|
- [Raster reprojection demo](https://openlayers.org/en/master/examples/reprojection.html)
|
||||||
- [OpenStreetMap to WGS84 reprojection](http://openlayers.org/en/master/examples/reprojection-wgs84.html)
|
- [OpenStreetMap to WGS84 reprojection](https://openlayers.org/en/master/examples/reprojection-wgs84.html)
|
||||||
- [Reprojection with EPSG.io database search](http://openlayers.org/en/master/examples/reprojection-by-code.html)
|
- [Reprojection with EPSG.io database search](https://openlayers.org/en/master/examples/reprojection-by-code.html)
|
||||||
- [Image reprojection](http://openlayers.org/en/master/examples/reprojection-image.html)
|
- [Image reprojection](https://openlayers.org/en/master/examples/reprojection-image.html)
|
||||||
|
|
||||||
### Custom projection
|
### 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.
|
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.
|
||||||
@@ -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).
|
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.
|
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
|
### Resolution calculation
|
||||||
When determining source tiles to load, the ideal source resolution needs to be calculated.
|
When determining source tiles to load, the ideal source resolution needs to be calculated.
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"mapping",
|
"mapping",
|
||||||
"ol3"
|
"ol3"
|
||||||
],
|
],
|
||||||
"homepage": "http://openlayers.org/",
|
"homepage": "https://openlayers.org/",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"install": "node tasks/install.js",
|
"install": "node tasks/install.js",
|
||||||
"postinstall": "closure-util update",
|
"postinstall": "closure-util update",
|
||||||
|
|||||||
@@ -17,12 +17,12 @@ ol.AssertionError = function(code) {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
this.message = 'Assertion failed. See ' +
|
this.message = 'Assertion failed. See ' +
|
||||||
(ol.VERSION ? 'http://openlayers.org/en/' + ol.VERSION.split('-')[0] : '') +
|
(ol.VERSION ? 'https://openlayers.org/en/' + ol.VERSION.split('-')[0] : '') +
|
||||||
'/doc/errors/#' + code + ' for details.';
|
'/doc/errors/#' + code + ' for details.';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error code. The meaning of the code can be found on
|
* Error code. The meaning of the code can be found on
|
||||||
* {@link http://openlayers.org/en/latest/errors.html} (replace `latest` with
|
* {@link https://openlayers.org/en/latest/errors.html} (replace `latest` with
|
||||||
* the version found in the OpenLayers script's header comment if a version
|
* the version found in the OpenLayers script's header comment if a version
|
||||||
* other than the latest is used).
|
* other than the latest is used).
|
||||||
* @type {number}
|
* @type {number}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ goog.require('ol.transform');
|
|||||||
* @const
|
* @const
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
ol.OL3_URL = 'http://openlayers.org/';
|
ol.OL3_URL = 'https://openlayers.org/';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ function augmentExamples(files, metalsmith, done) {
|
|||||||
}
|
}
|
||||||
var jsSource = files[jsFilename].contents.toString()
|
var jsSource = files[jsFilename].contents.toString()
|
||||||
// Change data paths to absolute urls
|
// Change data paths to absolute urls
|
||||||
.replace(/'data\//g, '\'http://openlayers.org/en/v' + pkg.version + '/examples/data/');
|
.replace(/'data\//g, '\'https://openlayers.org/en/v' + pkg.version + '/examples/data/');
|
||||||
if (file.cloak) {
|
if (file.cloak) {
|
||||||
for (var key in file.cloak) {
|
for (var key in file.cloak) {
|
||||||
jsSource = jsSource.replace(new RegExp(key, 'g'), file.cloak[key]);
|
jsSource = jsSource.replace(new RegExp(key, 'g'), file.cloak[key]);
|
||||||
@@ -115,7 +115,7 @@ function augmentExamples(files, metalsmith, done) {
|
|||||||
for (var i = 0, ii = file.resources.length; i < ii; ++i) {
|
for (var i = 0, ii = file.resources.length; i < ii; ++i) {
|
||||||
var resource = file.resources[i];
|
var resource = file.resources[i];
|
||||||
var remoteResource = resource.indexOf('//') === -1 ?
|
var remoteResource = resource.indexOf('//') === -1 ?
|
||||||
'http://openlayers.org/en/v' + pkg.version + '/examples/' +
|
'https://openlayers.org/en/v' + pkg.version + '/examples/' +
|
||||||
resource : resource;
|
resource : resource;
|
||||||
fiddleResources[i] = remoteResource;
|
fiddleResources[i] = remoteResource;
|
||||||
if (isJsRegEx.test(resource)) {
|
if (isJsRegEx.test(resource)) {
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ function getVersion(callback) {
|
|||||||
* ready to be written into a file, or any error.
|
* ready to be written into a file, or any error.
|
||||||
*/
|
*/
|
||||||
function addHeader(compiledSource, callback) {
|
function addHeader(compiledSource, callback) {
|
||||||
var header = '// OpenLayers 3. See http://openlayers.org/\n';
|
var header = '// OpenLayers 3. See https://openlayers.org/\n';
|
||||||
header += '// License: https://raw.githubusercontent.com/openlayers/' +
|
header += '// License: https://raw.githubusercontent.com/openlayers/' +
|
||||||
'ol3/master/LICENSE.md\n';
|
'ol3/master/LICENSE.md\n';
|
||||||
if (version !== '') {
|
if (version !== '') {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ describe('ol.AssertionError', function() {
|
|||||||
var origVersion = ol.VERSION;
|
var origVersion = ol.VERSION;
|
||||||
ol.VERSION = 'foo';
|
ol.VERSION = 'foo';
|
||||||
var error = new ol.AssertionError(42);
|
var error = new ol.AssertionError(42);
|
||||||
expect(error.message).to.be('Assertion failed. See http://openlayers.org/en/foo/doc/errors/#42 for details.');
|
expect(error.message).to.be('Assertion failed. See https://openlayers.org/en/foo/doc/errors/#42 for details.');
|
||||||
ol.VERSION = origVersion;
|
ol.VERSION = origVersion;
|
||||||
});
|
});
|
||||||
it('has an error code', function() {
|
it('has an error code', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user