UNPKG

@maptiler/sdk

Version:

The Javascript & TypeScript map SDK tailored for MapTiler Cloud

12 lines (11 loc) 728 B
import { LngLat, Marker, Point, PositionAnchor } from '../index'; import { Map } from '../Map'; export declare function unprojectFromWorldCoordinates(worldSize: number, point: Point): LngLat; export declare function monkeyPatchMapTransformInstance(instance: Map): void; export declare const anchorTranslate: Record<PositionAnchor, string>; /** * Monkey patches the Marker instance to remove wrapping. Because pixel projection does not wrap like lnglat. * See here https://github.com/maplibre/maplibre-gl-js/blob/14f56b00e0f08784681ef98f0731c60f3923a4a9/src/ui/marker.ts#L601 * @param {Marker} marker - The Marker instance to patch. */ export declare function monkeyPatchMarkerInstanceToRemoveWrapping(marker: Marker): void;