UNPKG

@totvs-agro/core-mobile

Version:

Core Mobile Totvs Agro (Front-End) para utilização dos estilos do T-Faces

34 lines (33 loc) 1.55 kB
import { ElementRef } from '@angular/core'; import { GoogleMap, MyLocation, GoogleMapOptions, ILatLng, CameraPosition, Marker, MyLocationOptions } from '@ionic-native/google-maps'; import { MapOptions } from './map-options'; import { Geolocation } from '@ionic-native/geolocation'; import { MapEvents } from './map-events'; import { PolygonOptions } from './polygon-options'; import { PolygonEvents } from './polygon-events'; import { TotvsNotificationProvider } from '../totvs-notification-provider'; export declare class MapProvider { private _geolocation; private _notification; private _map; private mapElement; private _events; private _infoWindow; constructor(_geolocation: Geolocation, _notification: TotvsNotificationProvider); getMapInstance(): GoogleMap; init(mapElement: ElementRef): MapProvider; create(mapOptions?: MapOptions): MapEvents; getCurrentPosition(): Promise<void | ILatLng>; getMapMyLocation(): Promise<any>; getDefaultMapOptions(): GoogleMapOptions; addPolygon(polygonPoints: ILatLng[], _polygonOptions?: PolygonOptions): PolygonEvents; addMarker(centerPolygon: ILatLng): Marker; moveCamera(cameraPosition: CameraPosition<any>): void; animateCamera(centerPolygon: ILatLng): void; getMyLocation(options?: MyLocationOptions): Promise<MyLocation>; closeTooltip(): void; destroyMap(): void; clearMap(): void; onCloseTooltip(event: Function): void; openTooltip(contents: string, position: ILatLng): void; }