Cleaned up ol/proj

This commit is contained in:
Tim Schaub
2018-07-17 17:54:24 -06:00
parent 069187859d
commit 45e0926896
2 changed files with 4 additions and 15 deletions
+2 -8
View File
@@ -1,7 +1,6 @@
/**
* @module ol/proj/epsg4326
*/
import {inherits} from '../util.js';
import Projection from '../proj/Projection.js';
import Units from '../proj/Units.js';
@@ -38,18 +37,15 @@ export const METERS_PER_UNIT = Math.PI * RADIUS / 180;
* Note that OpenLayers does not strictly comply with the EPSG definition.
* The EPSG registry defines 4326 as a CRS for Latitude,Longitude (y,x).
* OpenLayers treats EPSG:4326 as a pseudo-projection, with x,y coordinates.
*
* @constructor
* @extends {module:ol/proj/Projection}
*/
class EPSG4326Projection {
class EPSG4326Projection extends Projection {
/**
* @param {string} code Code.
* @param {string=} opt_axisOrientation Axis orientation.
*/
constructor(code, opt_axisOrientation) {
Projection.call(this, {
super({
code: code,
units: Units.DEGREES,
extent: EXTENT,
@@ -63,8 +59,6 @@ class EPSG4326Projection {
}
inherits(EPSG4326Projection, Projection);
/**
* Projections equal to EPSG:4326.