Rename reprojectTo option to projection
This commit is contained in:
+2
-2
@@ -1893,7 +1893,7 @@ olx.interaction.DoubleClickZoomOptions.prototype.delta;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{formatConstructors: (Array.<function(new: ol.format.Feature)>|undefined),
|
* @typedef {{formatConstructors: (Array.<function(new: ol.format.Feature)>|undefined),
|
||||||
* reprojectTo: ol.proj.ProjectionLike}}
|
* projection: ol.proj.ProjectionLike}}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
olx.interaction.DragAndDropOptions;
|
olx.interaction.DragAndDropOptions;
|
||||||
@@ -1912,7 +1912,7 @@ olx.interaction.DragAndDropOptions.prototype.formatConstructors;
|
|||||||
* @type {ol.proj.ProjectionLike}
|
* @type {ol.proj.ProjectionLike}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
olx.interaction.DragAndDropOptions.prototype.reprojectTo;
|
olx.interaction.DragAndDropOptions.prototype.projection;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ ol.interaction.DragAndDrop = function(opt_options) {
|
|||||||
* @private
|
* @private
|
||||||
* @type {ol.proj.Projection}
|
* @type {ol.proj.Projection}
|
||||||
*/
|
*/
|
||||||
this.reprojectTo_ = goog.isDef(options.reprojectTo) ?
|
this.projection_ = goog.isDef(options.projection) ?
|
||||||
ol.proj.get(options.reprojectTo) : null;
|
ol.proj.get(options.projection) : null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
@@ -97,7 +97,7 @@ ol.interaction.DragAndDrop.prototype.handleDrop_ = function(event) {
|
|||||||
ol.interaction.DragAndDrop.prototype.handleResult_ = function(file, result) {
|
ol.interaction.DragAndDrop.prototype.handleResult_ = function(file, result) {
|
||||||
var map = this.getMap();
|
var map = this.getMap();
|
||||||
goog.asserts.assert(!goog.isNull(map));
|
goog.asserts.assert(!goog.isNull(map));
|
||||||
var projection = this.reprojectTo_;
|
var projection = this.projection_;
|
||||||
if (goog.isNull(projection)) {
|
if (goog.isNull(projection)) {
|
||||||
var view = map.getView();
|
var view = map.getView();
|
||||||
goog.asserts.assert(!goog.isNull(view));
|
goog.asserts.assert(!goog.isNull(view));
|
||||||
|
|||||||
Reference in New Issue
Block a user