Reference ol.MapBrowserEvent instead of ol.MapBrowserPointerEvent
There is nothing exportable in ol.MapBrowserEvent in addition to what is exportable in ol.MapBrowserEvent.
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
## Upgrade notes
|
## Upgrade notes
|
||||||
|
|
||||||
|
#### `ol.interaction.ModifyEvent` changes
|
||||||
|
|
||||||
|
The event object previously had a `mapBrowserPointerEvent` property, which has been renamed to `mapBrowserEvent`.
|
||||||
|
|
||||||
#### Removal of ol.raster namespace
|
#### Removal of ol.raster namespace
|
||||||
|
|
||||||
Users compiling their code with the library and using types in the `ol.raster` namespace should note that this has now been removed. `ol.raster.Pixel` has been deleted, and the other types have been renamed as follows, and your code may need changing if you use these:
|
Users compiling their code with the library and using types in the `ol.raster` namespace should note that this has now been removed. `ol.raster.Pixel` has been deleted, and the other types have been renamed as follows, and your code may need changing if you use these:
|
||||||
|
|||||||
+2
-2
@@ -92,9 +92,9 @@ oli.ModifyEvent.prototype.features;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.MapBrowserPointerEvent}
|
* @type {ol.MapBrowserEvent}
|
||||||
*/
|
*/
|
||||||
oli.ModifyEvent.prototype.mapBrowserPointerEvent;
|
oli.ModifyEvent.prototype.mapBrowserEvent;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -73,11 +73,11 @@ ol.interaction.ModifyEvent = function(type, features, mapBrowserPointerEvent) {
|
|||||||
this.features = features;
|
this.features = features;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Associated {@link ol.MapBrowserPointerEvent}.
|
* Associated {@link ol.MapBrowserEvent}.
|
||||||
* @type {ol.MapBrowserPointerEvent}
|
* @type {ol.MapBrowserEvent}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
this.mapBrowserPointerEvent = mapBrowserPointerEvent;
|
this.mapBrowserEvent = mapBrowserPointerEvent;
|
||||||
};
|
};
|
||||||
ol.inherits(ol.interaction.ModifyEvent, ol.events.Event);
|
ol.inherits(ol.interaction.ModifyEvent, ol.events.Event);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user