maptoolkit
Version:
Utilidades para trabajar con el mapa de google web.
29 lines (28 loc) • 1.17 kB
TypeScript
import { MtMarker } from "./mtmarker";
import * as Collections from 'typescript-collections';
export declare class MtMarkerGroupCollection {
private _markersDic;
private _defGroup;
constructor();
readonly defaultGroup: string;
addMarker(marker: MtMarker, group?: string): MtMarkerGroupCollection;
/**
* Adiciona los markers que no existen en la coleccion y retorna los markers adicionados.
* @param markers
* @param group
* @return MtMarker[]
*/
addAllMarkers(markers: MtMarker[], group?: string): any[];
removeMarkerById(id: any, group?: string): MtMarker;
removeMarker(marker: MtMarker, group: string): MtMarker;
removeMarkers(markers: MtMarker[], group: string): MtMarker[];
removeMarkersById(ids: string[], group?: string): MtMarker[];
removeGroup(group: string): MtMarker[];
clear(): void;
getMarker(id: any, group?: string): MtMarker;
getCount(group?: string): number;
getGroup(group?: string): Collections.Dictionary<string, MtMarker>;
contains(id: any): boolean;
toArray(): MtMarker[];
_ensureGroup(group: string): Collections.Dictionary<string, MtMarker>;
}