@gouvfr-anct/mediation-numerique
Version:
📚 Bibliothèque pour la cartographie de l’offre de médiation numérique.
45 lines (44 loc) • 1.49 kB
TypeScript
import { Map, Marker } from 'leaflet';
import { MarkerType } from '../models/enum/markerType.enum';
import * as i0 from "@angular/core";
export declare class MapService {
private static markersList;
private isMarkerActive;
createMarker(lat: number, lon: number, markerType: MarkerType, id?: string, tooltip?: string): Marker;
private getLayerAttributton;
private getMarkerIcon;
private getActiveMarkerIcon;
private getAddedToListMarkerIcon;
private getHoverMarkerIcon;
/**
* @param id marker id
*/
setActiveMarker(id: string, type?: MarkerType): void;
setAddedToListMarker(id: string, type?: MarkerType): void;
setUnactiveMarker(id: string, type?: MarkerType): void;
/**
* Set a tooltip
* @param id markerId
* @param html html to display
*/
setToolTip(id: string, html: string): void;
/**
* Set a marker as selected by changing icon color
* @param id markerId
* @param html html to display
*/
setSelectedMarker(id: string, type?: MarkerType): void;
/**
* Set a marker as selected by changing icon color
* @param id markerId
* @param html html to display
*/
setDefaultMarker(id: string, type?: MarkerType): void;
/**
* Get marker by id
*/
getMarker(id: string): Marker;
cleanMap(map: Map): Map;
static ɵfac: i0.ɵɵFactoryDeclaration<MapService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MapService>;
}