@maptiler/sdk 3.9.1-rc.2 → 3.10.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +606 -348
- package/dist/maptiler-sdk.css +1 -1
- package/dist/maptiler-sdk.mjs +1746 -1720
- package/dist/maptiler-sdk.mjs.map +1 -1
- package/dist/src/ImageViewer/monkeyPatchML.d.ts +2 -3
- package/dist/src/Map.d.ts +5 -0
- package/dist/src/custom-layers/CubemapLayer/loadCubemapTexture.d.ts +1 -0
- package/dist/src/index.d.ts +10 -1
- package/dist/src/ml-types.d.ts +634 -0
- package/dist/src/utils/logSDKVersion.d.ts +1 -0
- package/package.json +4 -4
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { LngLat, Marker, Point, PositionAnchor } from '../index';
|
|
2
|
-
import { Map } from '../Map';
|
|
1
|
+
import { LngLat, Marker, Point, PositionAnchor, TransformConstrainFunction } from '../index';
|
|
3
2
|
export declare function unprojectFromWorldCoordinates(worldSize: number, point: Point): LngLat;
|
|
4
|
-
export declare
|
|
3
|
+
export declare const overpanningUnderzoomingTransformConstrain: TransformConstrainFunction;
|
|
5
4
|
export declare const anchorTranslate: Record<PositionAnchor, string>;
|
|
6
5
|
/**
|
|
7
6
|
* Monkey patches the Marker instance to remove wrapping. Because pixel projection does not wrap like lnglat.
|
package/dist/src/Map.d.ts
CHANGED
|
@@ -143,6 +143,11 @@ export type MapOptions = Omit<MapOptionsML, "style" | "maplibreLogo"> & {
|
|
|
143
143
|
*/
|
|
144
144
|
space?: CubemapLayerConstructorOptions | boolean;
|
|
145
145
|
halo?: RadialGradientLayerConstructorOptions | boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Whether to log the SDK version to the console.
|
|
148
|
+
* Default: Unless this is set explicitly to false, the SDK version will be logged to the console.
|
|
149
|
+
*/
|
|
150
|
+
logSDKVersion?: boolean;
|
|
146
151
|
};
|
|
147
152
|
/**
|
|
148
153
|
* The Map class can be instanciated to display a map in a `<div>`
|
|
@@ -6,6 +6,7 @@ interface LoadCubemapTextureOptions {
|
|
|
6
6
|
onReady: (texture: WebGLTexture, images?: HTMLImageElement[]) => void;
|
|
7
7
|
forceRefresh?: boolean;
|
|
8
8
|
}
|
|
9
|
+
export declare function deleteMemoizedTexture(gl: WebGLCtx): void;
|
|
9
10
|
/**
|
|
10
11
|
* Loads a cubemap texture from a set of image URLs.
|
|
11
12
|
*
|
package/dist/src/index.d.ts
CHANGED
|
@@ -31,7 +31,15 @@ declare const TwoFingersTouchPitchHandlerMLGL: typeof maplibregl.TwoFingersTouch
|
|
|
31
31
|
declare const MapWheelEventMLGL: typeof maplibregl.MapWheelEvent;
|
|
32
32
|
declare const MapTouchEventMLGL: typeof maplibregl.MapTouchEvent;
|
|
33
33
|
declare const MapMouseEventMLGL: typeof maplibregl.MapMouseEvent;
|
|
34
|
-
declare const configMLGL:
|
|
34
|
+
declare const configMLGL: {
|
|
35
|
+
MAX_PARALLEL_IMAGE_REQUESTS: number;
|
|
36
|
+
MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: number;
|
|
37
|
+
MAX_TILE_CACHE_ZOOM_LEVELS: number;
|
|
38
|
+
REGISTERED_PROTOCOLS: {
|
|
39
|
+
[x: string]: maplibregl.AddProtocolAction;
|
|
40
|
+
};
|
|
41
|
+
WORKER_URL: string;
|
|
42
|
+
};
|
|
35
43
|
declare const getMapLibreVersion: typeof maplibregl.getVersion;
|
|
36
44
|
declare const setRTLTextPlugin: typeof maplibregl.setRTLTextPlugin, getRTLTextPluginStatus: typeof maplibregl.getRTLTextPluginStatus, LngLat: typeof maplibregl.LngLat, LngLatBounds: typeof maplibregl.LngLatBounds, MercatorCoordinate: typeof maplibregl.MercatorCoordinate, Evented: typeof maplibregl.Evented, AJAXError: typeof maplibregl.AJAXError, prewarm: typeof maplibregl.prewarm, clearPrewarmedResources: typeof maplibregl.clearPrewarmedResources, Hash: typeof maplibregl.Hash, Point: typeof maplibregl.Point, EdgeInsets: typeof maplibregl.EdgeInsets, DragRotateHandler: typeof maplibregl.DragRotateHandler, DragPanHandler: typeof maplibregl.DragPanHandler, TwoFingersTouchZoomRotateHandler: typeof maplibregl.TwoFingersTouchZoomRotateHandler, DoubleClickZoomHandler: typeof maplibregl.DoubleClickZoomHandler, TwoFingersTouchZoomHandler: typeof maplibregl.TwoFingersTouchZoomHandler, TwoFingersTouchRotateHandler: typeof maplibregl.TwoFingersTouchRotateHandler, getWorkerCount: typeof maplibregl.getWorkerCount, setWorkerCount: typeof maplibregl.setWorkerCount, getMaxParallelImageRequests: typeof maplibregl.getMaxParallelImageRequests, setMaxParallelImageRequests: typeof maplibregl.setMaxParallelImageRequests, getWorkerUrl: typeof maplibregl.getWorkerUrl, setWorkerUrl: typeof maplibregl.setWorkerUrl, addSourceType: (name: string, SourceType: maplibregl.SourceClass) => Promise<void>, importScriptInWorkers: typeof maplibregl.importScriptInWorkers, addProtocol: typeof maplibregl.addProtocol, removeProtocol: typeof maplibregl.removeProtocol;
|
|
37
45
|
export { setRTLTextPlugin, getRTLTextPluginStatus, LngLat, LngLatBounds, MercatorCoordinate, Evented, AJAXError, prewarm, clearPrewarmedResources, Hash, Point, EdgeInsets, DragRotateHandler, DragPanHandler, TwoFingersTouchZoomRotateHandler, DoubleClickZoomHandler, TwoFingersTouchZoomHandler, TwoFingersTouchRotateHandler, getWorkerCount, setWorkerCount, getMaxParallelImageRequests, setMaxParallelImageRequests, getWorkerUrl, setWorkerUrl, addSourceType, importScriptInWorkers, addProtocol, removeProtocol, getMapLibreVersion, MapMLGL, MarkerMLGL, PopupMLGL, StyleMLGL, CanvasSourceMLGL, GeoJSONSourceMLGL, ImageSourceMLGL, RasterTileSourceMLGL, RasterDEMTileSourceMLGL, VectorTileSourceMLGL, VideoSourceMLGL, NavigationControMLGL, GeolocateControlMLGL, AttributionControlMLGL, LogoControlMLGL, ScaleControlMLGL, FullscreenControlMLGL, TerrainControMLGL, BoxZoomHandlerMLGL, ScrollZoomHandlerMLGL, CooperativeGesturesHandlerMLGL, KeyboardHandlerMLGL, TwoFingersTouchPitchHandlerMLGL, MapWheelEventMLGL, MapTouchEventMLGL, MapMouseEventMLGL, configMLGL, };
|
|
@@ -74,6 +82,7 @@ export { TwoFingersTouchPitchHandler } from './MLAdapters/TwoFingersTouchPitchHa
|
|
|
74
82
|
export { MapWheelEvent } from './MLAdapters/MapWheelEvent';
|
|
75
83
|
export { MapTouchEvent } from './MLAdapters/MapTouchEvent';
|
|
76
84
|
export { MapMouseEvent } from './MLAdapters/MapMouseEvent';
|
|
85
|
+
export * from './ml-types';
|
|
77
86
|
export { Map, GeolocationType, type MapOptions, type LoadWithTerrainEvent } from './Map';
|
|
78
87
|
export * from './controls';
|
|
79
88
|
export { type AutomaticStaticMapOptions, type BoundedStaticMapOptions, type BufferToPixelDataFunction, type ByIdGeocodingOptions, type CenteredStaticMapOptions, type CommonForwardAndReverseGeocodingOptions, type CoordinateExport, type CoordinateGrid, type CoordinateId, type CoordinateSearch, type CoordinateSearchResult, type CoordinateTransformResult, type CoordinateTransformation, type Coordinates, type CoordinatesSearchOptions, type CoordinatesTransformOptions, type DefaultTransformation, type ElevationAtOptions, type ElevationBatchOptions, type FeatureHierarchy, type FetchFunction, type GeocodingFeature, type GeocodingOptions, type GeocodingSearchResult, type GeolocationInfoOptions, type GeolocationResult, type GetDataOptions, type LanguageGeocodingOptions, MapStyle, type MapStylePreset, type MapStyleType, MapStyleVariant, type PixelData, ReferenceMapStyle, type ReverseGeocodingOptions, ServiceError, type StaticMapBaseOptions, type StaticMapMarker, type TileJSON, type XYZ, bufferToPixelDataBrowser, circumferenceAtLatitude, coordinates, data, elevation, expandMapStyle, geocoding, geolocation, getBufferToPixelDataParser, getTileCache, mapStylePresetList, math, misc, staticMaps, styleToStyle, type LanguageInfo, areSameLanguages, toLanguageInfo, isLanguageInfo, getAutoLanguage, getLanguageInfoFromFlag, getLanguageInfoFromCode, getLanguageInfoFromKey, canParsePixelData, } from '@maptiler/client';
|