@extendz/extendz-openlayer
Version:
Extend UI Platform built on Angular Material
39 lines (38 loc) • 1.36 kB
TypeScript
/**
* Copyright 2018 the original author or authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import * as ol from 'openlayers';
export declare enum OpenLayerToolType {
POINT = 0,
POLYGON = 1,
}
export declare enum PointToolType {
CAR = 0,
PRODUCTION_CAR = 1,
}
export declare enum PolygonToolType {
CONCENTRATES = 0,
STOCK = 1,
}
export declare enum MoveToolType {
MOVE = 0,
}
export declare class OpenLayerTool {
getSource(): ol.source.Vector;
getVectorLayer(source: ol.source.Vector, color: string): ol.layer.Vector;
getStyle(color: string): ol.style.Style;
static getBorderOnlyStyle(): ol.style.Style;
createDraw(source: ol.source.Vector, style: ol.style.Style, features: ol.Collection<ol.Feature>, clickTolerance?: number, type?: string): ol.interaction.Draw;
}