sic-mapping-toolkit
Version:
SICMapping Toolkit es una biblioteca para Angular que permite la creación de aplicaciones de Web Mapping por medio de OpenLayers
30 lines (29 loc) • 1.51 kB
TypeScript
import { SICMap } from '../models/map';
import { Feature, Overlay, Interaction } from 'ol';
import Control from 'ol/control/Control';
import Style from 'ol/style';
import { SICLayer } from '../models/layer';
import { MapEventType, MapEventHandlerPriority } from '../models';
export declare class MapService {
default: string;
mapas: Map<string, SICMap>;
constructor();
createMap(target: string, center?: [number, number], projection?: string, id?: string): SICMap;
setDefaultMapa(id: string): void;
getMapById(id: string): SICMap;
setBaseLayer(glayer: SICLayer, mapaId?: string): string;
clearBaseLayer(mapaId?: string): void;
addLayer(glayer: SICLayer, mapaId?: string): string;
removeLayer(idLayer: string, mapaId?: string): void;
addEventHandler(type: MapEventType, handler: (...args: any[]) => void, priority: MapEventHandlerPriority, mapaId?: string): string;
removeEventHandler(handlerId: string, mapaId?: string): void;
addOverlay(overlay: Overlay, mapaId?: string): void;
removeOverlay(overlay: Overlay, mapaId?: string): void;
addInteraction(interaction: Interaction, mapaId?: string): void;
removeInteraction(interaction: Interaction, mapaId?: string): void;
addControl(control: Control, mapaId?: string): void;
removeControl(control: Control, mapaId?: string): void;
drawFeature(feature: Feature, style: Style, mapaId?: string): void;
clearDrawings(featureIdPrefix: string, mapaId?: string): void;
private getMapa;
}