Use https for epsg.io

This commit is contained in:
Tim Schaub
2016-10-16 00:39:07 -06:00
parent 8c8246a33f
commit 324e67fac1
7 changed files with 9 additions and 9 deletions

View File

@@ -77,7 +77,7 @@ var map = new ol.Map({
var swissProjection = new ol.proj.Projection({ var swissProjection = new ol.proj.Projection({
code: 'EPSG:21781', code: 'EPSG:21781',
// The extent is used to determine zoom level 0. Recommended values for a // 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], extent: [485869.5728, 76443.1884, 837076.5648, 299941.7864],
units: 'm' units: 'm'
}); });
@@ -94,7 +94,7 @@ var map = new ol.Map({
``` ```
We recommend to lookup parameters of your projection (like the validity extent) 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)? ## Why is my map centered on the gulf of guinea (or africa, the ocean, null-island)?

View File

@@ -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. The view in any Proj4js supported coordinate reference system is possible and previously incompatible layers can now be combined and overlaid.
# Usage # 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 ``` javascript
var map = new ol.Map({ var map = new ol.Map({
target: 'map', target: 'map',
@@ -42,7 +42,7 @@ If a source (based on `ol.source.TileImage` or `ol.source.Image`) has a projecti
### 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.
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 ``` html
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.14/proj4.js"></script>

View File

@@ -5,7 +5,7 @@ shortdesc: Demonstrates client-side raster reprojection of OSM to arbitrary proj
docs: > docs: >
This example shows client-side raster reprojection capabilities from This example shows client-side raster reprojection capabilities from
OSM (EPSG:3857) to arbitrary projection by searching OSM (EPSG:3857) to arbitrary projection by searching
in <a href="http://epsg.io/">EPSG.io</a> database. in <a href="https://epsg.io/">EPSG.io</a> database.
tags: "reprojection, projection, proj4js, epsg.io" tags: "reprojection, projection, proj4js, epsg.io"
resources: resources:
- https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.15/proj4.js - https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.15/proj4.js

View File

@@ -63,7 +63,7 @@ function setProjection(code, name, proj4def, bbox) {
function search(query) { function search(query) {
resultSpan.innerHTML = 'Searching ...'; resultSpan.innerHTML = 'Searching ...';
fetch('http://epsg.io/?format=json&q=' + query).then(function(response) { fetch('https://epsg.io/?format=json&q=' + query).then(function(response) {
return response.json(); return response.json();
}).then(function(json) { }).then(function(json) {
var results = json['results']; var results = json['results'];

View File

@@ -16,7 +16,7 @@ goog.require('ol.source.TileWMS');
var projection = new ol.proj.Projection({ var projection = new ol.proj.Projection({
code: 'EPSG:21781', code: 'EPSG:21781',
// The extent is used to determine zoom level 0. Recommended values for a // 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], extent: [485869.5728, 76443.1884, 837076.5648, 299941.7864],
units: 'm' units: 'm'
}); });

View File

@@ -17,7 +17,7 @@ goog.require('ol.source.ImageWMS');
// //
// Note that we are setting the projection's extent here, which is used to // Note that we are setting the projection's extent here, which is used to
// determine the view resolution for zoom level 0. Recommended values for a // determine the view resolution for 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/.
// //
// If you use Proj4js only to transform coordinates, you don't even need to // If you use Proj4js only to transform coordinates, you don't even need to
// create an ol.proj.Projection instance. ol.proj.get() will take care of it // create an ol.proj.Projection instance. ol.proj.get() will take care of it

View File

@@ -19,7 +19,7 @@
* Proj4js, or create a custom build to support those projections you need; see * Proj4js, or create a custom build to support those projections you need; see
* the Proj4js website for how to do this. You also need the Proj4js definitions * the Proj4js website for how to do this. You also need the Proj4js definitions
* for the required projections. These definitions can be obtained from * for the required projections. These definitions can be obtained from
* {@link http://epsg.io/}, and are a JS function, so can be loaded in a script * {@link https://epsg.io/}, and are a JS function, so can be loaded in a script
* tag (as in the examples) or pasted into your application. * tag (as in the examples) or pasted into your application.
* The first time there is a request for a projection, either with a * The first time there is a request for a projection, either with a
* {@link ol.proj.projectionLike} or directly with {@link ol.proj.get}, the * {@link ol.proj.projectionLike} or directly with {@link ol.proj.get}, the