maplibre-gl-js-amplify
Version:
MapLibre Plugin to Support Amplify Geo Integration
19 lines (18 loc) • 1.38 kB
TypeScript
import { Feature } from 'geojson';
import type { GeoJSONSource, Source } from 'maplibre-gl';
import type { Coordinates, NamedLocation, Geofence, Polygon } from './types';
export declare function isCoordinates(array: unknown): array is Coordinates;
export declare function isCoordinatesArray(array: unknown): array is Coordinates[];
export declare function isNamedLocation(object: unknown): object is NamedLocation;
export declare function isNamedLocationArray(array: unknown): array is NamedLocation[];
export declare function isGeofence(object: unknown): object is Geofence;
export declare function isGeofenceArray(array: unknown): array is Geofence[];
export declare function isPolygon(object: unknown): object is Polygon;
export declare function isPolygonArray(array: unknown): array is Polygon[];
export declare function isGeoJsonSource(source: Source): source is GeoJSONSource;
export declare const strHasLength: (str: unknown) => str is string;
export declare const getFeaturesFromData: (data: Coordinates[] | Feature[] | NamedLocation[]) => Feature[];
export declare const urlEncodePeriods: (str: string) => string;
export declare function validateCoordinates(coordinates: Coordinates): void;
export declare function createElement(tagName: string, className?: string, container?: HTMLElement): HTMLElement;
export declare function removeElement(node: HTMLElement): void;