UNPKG

@maptiler/geocoding-control

Version:

The Javascript & TypeScript Map Control component for MapTiler Geocoding service. Easy to be integrated into any JavaScript mapping application.

7 lines (6 loc) 524 B
import { FeatureCollection, MultiPolygon, Polygon, Position } from 'geojson'; import { BBox } from '../types'; export declare function wrapNum(x: number, range: [number, number], includeMax: boolean): number; export declare function unwrapBbox(bbox0: BBox): BBox; export declare function shiftPolyCollection(featureCollection: FeatureCollection<Polygon | MultiPolygon>, distance: number): FeatureCollection<Polygon | MultiPolygon>; export declare function shiftPolyCoords(coordinates: Position[][], distance: number): void;