UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

23 lines (22 loc) 965 B
import { MarkerModel, PolygonModel } from '../../mapping/data'; export declare const UPDATE_MARKERS = "UPDATE_MARKERS"; export declare const UPDATE_POLYGONS = "UPDATE_POLYGONS"; export declare const MARKER_CLICKED = "MARKER_CLICKED"; export interface UpdateMarkersAction { type: 'UPDATE_MARKERS'; markerType: string; markers: MarkerModel[]; } export interface UpdatePolygonsAction { type: 'UPDATE_POLYGONS'; polygonType: string; polygons: PolygonModel[]; } export interface MarkerClickedAction { type: 'MARKER_CLICKED'; refId: string; } export declare type MapMarkersAction = UpdateMarkersAction | UpdatePolygonsAction | MarkerClickedAction; export declare const updateMarkers: (markerType: string, markers: MarkerModel[]) => UpdateMarkersAction; export declare const updatePolygons: (polygonType: string, polygons: PolygonModel[]) => UpdatePolygonsAction; export declare const markerClicked: (refId: string) => MarkerClickedAction;