Making ol.proj.Projection subclasses exportable
Because ol.proj.EPSG4326 et al. extend ol.proj.Projection which has exportable methods, these constructors need to be exportable as well (e.g. so ol.proj.EPSG4326.prototype is defined in exports.js when calling goog.exportProperty on getCode etc.). If we really don't want these to be exportable, they should be removed or made private (and named like ol.proj.EPSG4326_) for internal use only.
This commit is contained in:
@@ -17,6 +17,7 @@ goog.require('ol.proj.Units');
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.proj.Projection}
|
* @extends {ol.proj.Projection}
|
||||||
* @param {{code: string, extent: ol.Extent}} options Options.
|
* @param {{code: string, extent: ol.Extent}} options Options.
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
ol.proj.CH = function(options) {
|
ol.proj.CH = function(options) {
|
||||||
goog.base(this, {
|
goog.base(this, {
|
||||||
@@ -395,6 +396,7 @@ ol.proj.CH.prototype.getPointResolution = function(resolution, point) {
|
|||||||
* The EPSG:2056 projection, also known as LV95 (CH1903+).
|
* The EPSG:2056 projection, also known as LV95 (CH1903+).
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.proj.CH}
|
* @extends {ol.proj.CH}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
ol.proj.EPSG2056 = function() {
|
ol.proj.EPSG2056 = function() {
|
||||||
goog.base(this, {
|
goog.base(this, {
|
||||||
@@ -433,6 +435,7 @@ ol.proj.EPSG2056.add = function() {
|
|||||||
* The EPSG:21781 projection, also known as LV03 (CH1903).
|
* The EPSG:21781 projection, also known as LV03 (CH1903).
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.proj.CH}
|
* @extends {ol.proj.CH}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
ol.proj.EPSG21781 = function() {
|
ol.proj.EPSG21781 = function() {
|
||||||
goog.base(this, {
|
goog.base(this, {
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ goog.require('ol.proj.Units');
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.proj.Projection}
|
* @extends {ol.proj.Projection}
|
||||||
* @param {string} code Code.
|
* @param {string} code Code.
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
ol.proj.EPSG3857 = function(code) {
|
ol.proj.EPSG3857 = function(code) {
|
||||||
goog.base(this, {
|
goog.base(this, {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ goog.require('ol.proj.Units');
|
|||||||
* @extends {ol.proj.Projection}
|
* @extends {ol.proj.Projection}
|
||||||
* @param {string} code Code.
|
* @param {string} code Code.
|
||||||
* @param {string=} opt_axisOrientation Axis orientation.
|
* @param {string=} opt_axisOrientation Axis orientation.
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
ol.proj.EPSG4326 = function(code, opt_axisOrientation) {
|
ol.proj.EPSG4326 = function(code, opt_axisOrientation) {
|
||||||
goog.base(this, {
|
goog.base(this, {
|
||||||
|
|||||||
Reference in New Issue
Block a user