maplair
Version:
JavaScript library for mobile-friendly interactive maps
21 lines (20 loc) • 669 B
JavaScript
import { falseFn, splitWords } from "../core/Util.js";
import { ImageOverlay } from "./ImageOverlay.js";
//#region src/layer/SVGOverlay.js
var SVGOverlay = class SVGOverlay extends ImageOverlay {
constructor(...args) {
super(...args);
this.callInitHooks(SVGOverlay);
}
_initImage() {
const el = this._image = this._url;
el.classList.add("maplair-image-layer");
if (this._zoomAnimated) el.classList.add("maplair-zoom-animated");
if (this.options.className) el.classList.add(...splitWords(this.options.className));
el.onselectstart = falseFn;
el.onpointermove = falseFn;
}
};
//#endregion
export { SVGOverlay };
//# sourceMappingURL=SVGOverlay.js.map