-
Glenn Vorhes authoredGlenn Vorhes authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
layerSwipe.d.ts 853 B
/// <reference types="jquery" />
import { LayerBase } from "../layers/LayerBase";
import { ol } from 'custom-ol';
declare class LayerSwipe {
leftLayers: Array<LayerBase>;
rightLayers: Array<LayerBase>;
_percentRight: number;
_map: ol.Map;
$mapElement: JQuery;
$swiper: JQuery;
dragging: boolean;
offset: number;
/**
*
* @param {ol.Map} map - the map
* @param {string} [sliderContent=''] - additional html to be added inside the slider div
*/
constructor(map: ol.Map, sliderContent?: string);
/**
*
* @param {LayerBase|*} lyr - layer to be added to left side
*/
addLeftLayer(lyr: any): void;
/**
*
* @param {LayerBase|*} lyr - layer to be added to right side
*/
addRightLayer(lyr: any): void;
percentRight: number;
}
export default LayerSwipe;