Update to ol.proj

Add support for custom getPointResolution
and setting the 'global' boolean
This commit is contained in:
bill-chadwick
2015-03-16 22:46:47 +00:00
parent 47f32a30b8
commit 3efea3ddfc
2 changed files with 69 additions and 11 deletions

View File

@@ -415,7 +415,8 @@ olx.OverlayOptions.prototype.autoPanMargin;
* extent: (ol.Extent|undefined),
* axisOrientation: (string|undefined),
* global: (boolean|undefined),
* worldExtent: (ol.Extent|undefined)}}
* worldExtent: (ol.Extent|undefined),
* getPointResolution: (function(number, ol.Coordinate):number|undefined) }}
* @api
*/
olx.ProjectionOptions;
@@ -468,6 +469,13 @@ olx.ProjectionOptions.prototype.global;
*/
olx.ProjectionOptions.prototype.worldExtent;
/**
* Function to determine resolution at a point.
* @type {(function(number, ol.Coordinate):number|undefined)}
* @api
*/
olx.ProjectionOptions.prototype.getPointResolution;
/**
* Object literal with config options for the view.