Rename reprojectTo option to projection
This commit is contained in:
@@ -42,8 +42,8 @@ ol.interaction.DragAndDrop = function(opt_options) {
|
||||
* @private
|
||||
* @type {ol.proj.Projection}
|
||||
*/
|
||||
this.reprojectTo_ = goog.isDef(options.reprojectTo) ?
|
||||
ol.proj.get(options.reprojectTo) : null;
|
||||
this.projection_ = goog.isDef(options.projection) ?
|
||||
ol.proj.get(options.projection) : null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -97,7 +97,7 @@ ol.interaction.DragAndDrop.prototype.handleDrop_ = function(event) {
|
||||
ol.interaction.DragAndDrop.prototype.handleResult_ = function(file, result) {
|
||||
var map = this.getMap();
|
||||
goog.asserts.assert(!goog.isNull(map));
|
||||
var projection = this.reprojectTo_;
|
||||
var projection = this.projection_;
|
||||
if (goog.isNull(projection)) {
|
||||
var view = map.getView();
|
||||
goog.asserts.assert(!goog.isNull(view));
|
||||
|
||||
Reference in New Issue
Block a user