UNPKG

@mint-ui/map

Version:

- React map library - Control various map with one interface - Google, Naver, Kakao map supported now - Typescript supported - Canvas marker supported

55 lines (54 loc) 2.48 kB
/// <reference types="google.maps" /> import { MintMapController } from "../core/MintMapController"; import { MapType, MapVendorType } from "../types/CommonTypes"; import { Drawable, Marker, MarkerOptions, Polygon, PolygonOptions, Polyline, PolylineOptions } from "../types/MapDrawables"; import { EventCallback, EventParamType, MapEvent, MapEventName, MapUIEvent } from "../types/MapEventTypes"; import { Bounds, Position, Spacing } from '../types/MapTypes'; import { MintMapProps } from "../types/MintMapProps"; import { Property } from "csstype"; export declare class GoogleMintMapController extends MintMapController { type: MapType; map: google.maps.Map | null; scriptUrl: string; scriptModules: string[]; protected mapEvent: MapEvent; protected mapUIEvent: MapUIEvent; constructor(props: MintMapProps); polylineEvents: string[]; createPolyline(polyline: Polyline): void; updatePolyline(polyline: Polyline, options: PolylineOptions): void; polygonEvents: string[]; createPolygon(polygon: Polygon): void; updatePolygon(polygon: Polygon, options: PolygonOptions): void; private getValidOptions; markerEvents: string[]; createMarker(marker: Marker): void; updateMarker(marker: Marker, options: MarkerOptions): void; private markerMaxZIndex; private getMaxZIndex; setMarkerZIndex(marker: Marker, zIndex: number): void; markerToTheTop(marker: Marker): void; clearDrawable(drawable: Drawable): boolean; private dragged; isMapDragged(): boolean; setMapDragged(value: boolean): void; private checkLoaded; loadMapApi(): Promise<boolean>; lastMousePosition: Position | null; initializingMap(divElement: HTMLDivElement): Promise<MapVendorType>; destroyMap: () => void; private fromGoogleBounds; getCurrBounds(): Bounds; panningTo(targetCenter: Position): void; getZoomLevel(): number; setZoomLevel(zoom: number): void; getCenter(): Position; setCenter(position: Position): void; setMapCursor(cursor: Property.Cursor): void; focusPositionsToFitViewport(positions: Position[], spacing?: number | Spacing): void; private eventMap; addEventListener(eventName: MapEventName, callback: EventCallback<EventParamType>): void; removeEventListener(eventName: MapEventName, callback: EventCallback<EventParamType>): void; removeAllEventListener(eventName?: MapEventName | undefined): void; private clearEventListener; }