Shorter module paths for default exports
This commit is contained in:
@@ -121,7 +121,7 @@ const DragBox = function(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
/**
|
||||
* @type {module:ol/render/Box~Box}
|
||||
* @type {module:ol/render/Box}
|
||||
* @private
|
||||
*/
|
||||
this.box_ = new RenderBox(options.className || 'ol-dragbox');
|
||||
|
||||
@@ -388,7 +388,7 @@ const Draw = function(options) {
|
||||
|
||||
/**
|
||||
* Draw overlay where our sketch features are drawn.
|
||||
* @type {module:ol/layer/Vector~Vector}
|
||||
* @type {module:ol/layer/Vector}
|
||||
* @private
|
||||
*/
|
||||
this.overlay_ = new VectorLayer({
|
||||
|
||||
@@ -142,7 +142,7 @@ const ExtentInteraction = function(opt_options) {
|
||||
|
||||
/**
|
||||
* Layer for the extentFeature
|
||||
* @type {module:ol/layer/Vector~Vector}
|
||||
* @type {module:ol/layer/Vector}
|
||||
* @private
|
||||
*/
|
||||
this.extentOverlay_ = new VectorLayer({
|
||||
@@ -157,7 +157,7 @@ const ExtentInteraction = function(opt_options) {
|
||||
|
||||
/**
|
||||
* Layer for the vertexFeature
|
||||
* @type {module:ol/layer/Vector~Vector}
|
||||
* @type {module:ol/layer/Vector}
|
||||
* @private
|
||||
*/
|
||||
this.vertexOverlay_ = new VectorLayer({
|
||||
|
||||
@@ -249,7 +249,7 @@ const Modify = function(options) {
|
||||
|
||||
/**
|
||||
* Draw overlay where sketch features are drawn.
|
||||
* @type {module:ol/layer/Vector~Vector}
|
||||
* @type {module:ol/layer/Vector}
|
||||
* @private
|
||||
*/
|
||||
this.overlay_ = new VectorLayer({
|
||||
|
||||
@@ -220,7 +220,7 @@ const Select = function(opt_options) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/layer/Vector~Vector}
|
||||
* @type {module:ol/layer/Vector}
|
||||
*/
|
||||
this.featureOverlay_ = featureOverlay;
|
||||
|
||||
@@ -301,13 +301,13 @@ Select.prototype.getHitTolerance = function() {
|
||||
* programmatic method like pushing features to
|
||||
* {@link module:ol/interaction/Select~Select#getFeatures collection}.
|
||||
* @param {module:ol/Feature|module:ol/render/Feature} feature Feature
|
||||
* @return {module:ol/layer/Vector~Vector} Layer.
|
||||
* @return {module:ol/layer/Vector} Layer.
|
||||
* @api
|
||||
*/
|
||||
Select.prototype.getLayer = function(feature) {
|
||||
const key = getUid(feature);
|
||||
return (
|
||||
/** @type {module:ol/layer/Vector~Vector} */ (this.featureLayerAssociation_[key])
|
||||
/** @type {module:ol/layer/Vector} */ (this.featureLayerAssociation_[key])
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user