Skip to content

Commit

Permalink
add getPrjExtent in map (an alias of getProjExtent)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Dec 20, 2017
1 parent 22d8a48 commit e032b7e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/map/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,15 @@ class Map extends Handlerable(Eventable(Renderable(Class))) {
);
}

/**
* Alias for getProjExtent
*
* @return {Extent}
*/
getPrjExtent() {
return this.getProjExtent();
}

/**
* Get the max extent that the map is restricted to.
* @return {Extent}
Expand Down Expand Up @@ -2011,7 +2020,7 @@ class Map extends Handlerable(Eventable(Renderable(Class))) {
/**
* Converts the projected coordinate to a 2D point in the specific zoom
* @param {Coordinate} pCoord - projected Coordinate
* @param {Number} zoom - zoom level
* @param {Number} zoom - point's zoom level
* @return {Point} 2D point
* @private
*/
Expand All @@ -2023,7 +2032,7 @@ class Map extends Handlerable(Eventable(Renderable(Class))) {
/**
* Converts the 2D point to projected coordinate
* @param {Point} point - 2D point
* @param {Number} zoom - zoom level
* @param {Number} zoom - point's zoom level
* @return {Coordinate} projected coordinate
* @private
*/
Expand Down

0 comments on commit e032b7e

Please sign in to comment.