Remove PluggableMap
This commit is contained in:
@@ -254,7 +254,7 @@ class DragAndDrop extends Interaction {
|
||||
* Remove the interaction from its current map and attach it to the new map.
|
||||
* Subclasses may set up event handlers to get notified about changes to
|
||||
* the map here.
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @param {import("../Map.js").default} map Map.
|
||||
*/
|
||||
setMap(map) {
|
||||
this.unregisterListeners_();
|
||||
|
||||
@@ -521,7 +521,7 @@ class Draw extends PointerInteraction {
|
||||
* Remove the interaction from its current map and attach it to the new map.
|
||||
* Subclasses may set up event handlers to get notified about changes to
|
||||
* the map here.
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @param {import("../Map.js").default} map Map.
|
||||
*/
|
||||
setMap(map) {
|
||||
super.setMap(map);
|
||||
|
||||
@@ -211,7 +211,7 @@ class Extent extends PointerInteraction {
|
||||
|
||||
/**
|
||||
* @param {import("../pixel.js").Pixel} pixel cursor location
|
||||
* @param {import("../PluggableMap.js").default} map map
|
||||
* @param {import("../Map.js").default} map map
|
||||
* @return {import("../coordinate.js").Coordinate|null} snapped vertex on extent
|
||||
* @private
|
||||
*/
|
||||
@@ -424,7 +424,7 @@ class Extent extends PointerInteraction {
|
||||
* Remove the interaction from its current map and attach it to the new map.
|
||||
* Subclasses may set up event handlers to get notified about changes to
|
||||
* the map here.
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @param {import("../Map.js").default} map Map.
|
||||
*/
|
||||
setMap(map) {
|
||||
this.extentOverlay_.setMap(map);
|
||||
|
||||
@@ -66,7 +66,7 @@ class Interaction extends BaseObject {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {import("../PluggableMap.js").default|null}
|
||||
* @type {import("../Map.js").default|null}
|
||||
*/
|
||||
this.map_ = null;
|
||||
|
||||
@@ -85,7 +85,7 @@ class Interaction extends BaseObject {
|
||||
|
||||
/**
|
||||
* Get the map associated with this interaction.
|
||||
* @return {import("../PluggableMap.js").default|null} Map.
|
||||
* @return {import("../Map.js").default|null} Map.
|
||||
* @api
|
||||
*/
|
||||
getMap() {
|
||||
@@ -116,7 +116,7 @@ class Interaction extends BaseObject {
|
||||
* Remove the interaction from its current map and attach it to the new map.
|
||||
* Subclasses may set up event handlers to get notified about changes to
|
||||
* the map here.
|
||||
* @param {import("../PluggableMap.js").default|null} map Map.
|
||||
* @param {import("../Map.js").default|null} map Map.
|
||||
*/
|
||||
setMap(map) {
|
||||
this.map_ = map;
|
||||
|
||||
@@ -164,7 +164,7 @@ class Link extends Interaction {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import("../PluggableMap.js").default|null} map Map.
|
||||
* @param {import("../Map.js").default|null} map Map.
|
||||
*/
|
||||
setMap(map) {
|
||||
const oldMap = this.getMap();
|
||||
@@ -183,7 +183,7 @@ class Link extends Interaction {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @param {import("../Map.js").default} map Map.
|
||||
* @private
|
||||
*/
|
||||
registerListeners_(map) {
|
||||
@@ -199,7 +199,7 @@ class Link extends Interaction {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @param {import("../Map.js").default} map Map.
|
||||
* @private
|
||||
*/
|
||||
unregisterListeners_(map) {
|
||||
|
||||
@@ -538,7 +538,7 @@ class Modify extends PointerInteraction {
|
||||
* Remove the interaction from its current map and attach it to the new map.
|
||||
* Subclasses may set up event handlers to get notified about changes to
|
||||
* the map here.
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @param {import("../Map.js").default} map Map.
|
||||
*/
|
||||
setMap(map) {
|
||||
this.overlay_.setMap(map);
|
||||
@@ -1158,7 +1158,7 @@ class Modify extends PointerInteraction {
|
||||
|
||||
/**
|
||||
* @param {import("../pixel.js").Pixel} pixel Pixel
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @param {import("../Map.js").default} map Map.
|
||||
* @param {import("../coordinate.js").Coordinate} [opt_coordinate] The pixel Coordinate.
|
||||
* @private
|
||||
*/
|
||||
|
||||
@@ -254,7 +254,7 @@ class MouseWheelZoom extends Interaction {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @param {import("../Map.js").default} map Map.
|
||||
*/
|
||||
handleWheelZoom_(map) {
|
||||
const view = map.getView();
|
||||
|
||||
@@ -332,7 +332,7 @@ class Select extends Interaction {
|
||||
/**
|
||||
* Remove the interaction from its current map, if any, and attach it to a new
|
||||
* map, if any. Pass `null` to just remove the interaction from the current map.
|
||||
* @param {import("../PluggableMap.js").default|null} map Map.
|
||||
* @param {import("../Map.js").default|null} map Map.
|
||||
* @api
|
||||
*/
|
||||
setMap(map) {
|
||||
|
||||
@@ -368,7 +368,7 @@ class Snap extends PointerInteraction {
|
||||
* Remove the interaction from its current map and attach it to the new map.
|
||||
* Subclasses may set up event handlers to get notified about changes to
|
||||
* the map here.
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @param {import("../Map.js").default} map Map.
|
||||
*/
|
||||
setMap(map) {
|
||||
const currentMap = this.getMap();
|
||||
@@ -423,7 +423,7 @@ class Snap extends PointerInteraction {
|
||||
/**
|
||||
* @param {import("../pixel.js").Pixel} pixel Pixel
|
||||
* @param {import("../coordinate.js").Coordinate} pixelCoordinate Coordinate
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @param {import("../Map.js").default} map Map.
|
||||
* @return {Result|null} Snap result
|
||||
*/
|
||||
snapTo(pixel, pixelCoordinate, map) {
|
||||
|
||||
@@ -336,7 +336,7 @@ class Translate extends PointerInteraction {
|
||||
* Tests to see if the given coordinates intersects any of our selected
|
||||
* features.
|
||||
* @param {import("../pixel.js").Pixel} pixel Pixel coordinate to test for intersection.
|
||||
* @param {import("../PluggableMap.js").default} map Map to test the intersection on.
|
||||
* @param {import("../Map.js").default} map Map to test the intersection on.
|
||||
* @return {import("../Feature.js").default} Returns the feature found at the specified pixel
|
||||
* coordinates.
|
||||
* @private
|
||||
@@ -381,7 +381,7 @@ class Translate extends PointerInteraction {
|
||||
* Remove the interaction from its current map and attach it to the new map.
|
||||
* Subclasses may set up event handlers to get notified about changes to
|
||||
* the map here.
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @param {import("../Map.js").default} map Map.
|
||||
*/
|
||||
setMap(map) {
|
||||
const oldMap = this.getMap();
|
||||
@@ -397,7 +397,7 @@ class Translate extends PointerInteraction {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import("../PluggableMap.js").default} oldMap Old map.
|
||||
* @param {import("../Map.js").default} oldMap Old map.
|
||||
* @private
|
||||
*/
|
||||
updateState_(oldMap) {
|
||||
|
||||
Reference in New Issue
Block a user