@maptiler/sdk 4.0.0-rc.6 → 4.0.1
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/dist/maptiler-sdk.d.ts +1 -1
- package/dist/maptiler-sdk.mjs +1 -1
- package/package.json +5 -2
- package/.editorconfig +0 -13
- package/.husky/pre-commit +0 -3
- package/e2e/global.d.ts +0 -25
- package/e2e/public/animated-route.geojson +0 -82
- package/e2e/public/animatedRouteLayer.html +0 -24
- package/e2e/public/haloSpace.html +0 -25
- package/e2e/public/mapLoad.html +0 -24
- package/e2e/public/rtlTextPlugin.html +0 -24
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-0-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-1-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-10-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-11-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-12-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-13-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-14-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-15-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-16-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-17-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-18-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-19-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-2-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-3-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-4-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-5-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-6-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-7-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-8-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-9-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-catalogue-style-halo-constructor-override-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-json-style-config-halo-constructor-override-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-json-style-config-halo-rendered-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-json-style-config-halo-rendered-chromium.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-json-style-config-halo-true-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-no-style-config-halo-true-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-remote-style-config-halo-constructor-override-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-remote-style-config-halo-false-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-remote-style-config-halo-true-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-style-config-halo-json-default-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-style-config-halo-json-default-chromium.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-style-config-halo-json-false-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-style-config-halo-json-false-chromium.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-style-config-halo-json-valid-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-style-config-halo-json-valid-chromium.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/halo-halo-style-config-halo-remote-valid-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-catalogue-style-config-space-true-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-catalogue-style-config-space-undefined-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-json-style-config-space-true-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-json-style-config-space-true-chromium.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-json-style-config-space-true-default-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-json-style-config-space-true-default-chromium.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-style-config-constructor-undefined-with-json-style-config-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-style-config-space-constructor-with-catalogue-style-config-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-style-config-space-constructor-with-json-space-config-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-style-config-space-constructor-with-json-space-config-chromium.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-style-config-space-false-with-json-style-config-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-style-config-space-false-with-json-style-config-chromium.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-style-config-space-false-with-style-config-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/haloSpace.test.ts-snapshots/space-space-style-config-space-true-no-style-config-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/map-load.test.ts-snapshots/halo-halo-json-style-config-halo-rendered-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/map-load.test.ts-snapshots/halo-halo-json-style-config-halo-true-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/map-load.test.ts-snapshots/halo-halo-style-config-halo-json-default-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/map-load.test.ts-snapshots/halo-halo-style-config-halo-json-false-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/map-load.test.ts-snapshots/halo-halo-style-config-halo-json-valid-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/map-load.test.ts-snapshots/mapLoad-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/map-load.test.ts-snapshots/space-space-json-style-config-space-true-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/map-load.test.ts-snapshots/space-space-json-style-config-space-true-chromium.png +0 -0
- package/e2e/snapshots/tests/map-load.test.ts-snapshots/space-space-json-style-config-space-true-default-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/map-load.test.ts-snapshots/space-space-style-config-space-constructor-with-json-space-config-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/map-load.test.ts-snapshots/space-space-style-config-space-false-with-json-style-config-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/rtlTextPlugin.test.ts-snapshots/halo-halo-json-style-config-halo-rendered-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/rtlTextPlugin.test.ts-snapshots/halo-halo-json-style-config-halo-true-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/rtlTextPlugin.test.ts-snapshots/halo-halo-style-config-halo-json-default-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/rtlTextPlugin.test.ts-snapshots/halo-halo-style-config-halo-json-false-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/rtlTextPlugin.test.ts-snapshots/halo-halo-style-config-halo-json-valid-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/rtlTextPlugin.test.ts-snapshots/space-space-json-style-config-space-true-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/rtlTextPlugin.test.ts-snapshots/space-space-json-style-config-space-true-default-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/rtlTextPlugin.test.ts-snapshots/space-space-style-config-space-constructor-with-json-space-config-chromium-linux.png +0 -0
- package/e2e/snapshots/tests/rtlTextPlugin.test.ts-snapshots/space-space-style-config-space-false-with-json-style-config-chromium-linux.png +0 -0
- package/e2e/tests/AnimatedRouteLayer.test.ts +0 -45
- package/e2e/tests/consts.ts +0 -0
- package/e2e/tests/expected-results/animatedRouteLayer-1.json +0 -202
- package/e2e/tests/haloSpace.test.ts +0 -809
- package/e2e/tests/helpers/fetchGeojson.ts +0 -21
- package/e2e/tests/helpers/getMapInstanceForFixture.ts +0 -87
- package/e2e/tests/helpers/injectGlobalVariables.ts +0 -13
- package/e2e/tests/helpers/loadFixtureAndGetMapHandle.ts +0 -109
- package/e2e/tests/map-load.test.ts +0 -14
- package/e2e/tests/mocks/maptiler-style-space-halo-invalid.json +0 -38
- package/e2e/tests/mocks/maptiler-style-space-halo.json +0 -41
- package/e2e/tests/mocks/maptiler-style.json +0 -28
- package/e2e/tests/mocks/terrain-tile.png +0 -0
- package/e2e/tests/mocks/tile.png +0 -0
- package/e2e/tests/rtlTextPlugin.test.ts +0 -22
- package/e2e/tsconfig.json +0 -16
- package/eslint.config.mjs +0 -141
- package/playwright.config.ts +0 -88
- package/test-results/tests-map-load-Awaits-until-map-ready-and-takes-snapshot-chromium/trace.zip +0 -0
- package/tsconfig.json +0 -42
- package/typedoc.css +0 -118
- package/typedoc.json +0 -13
- package/vitest-setup-tests.ts +0 -19
- /package/dist/{src/ColorRamp.d.ts → ColorRamp.d.ts} +0 -0
- /package/dist/{src/ImageViewer → ImageViewer}/ImageViewer.d.ts +0 -0
- /package/dist/{src/ImageViewer → ImageViewer}/ImageViewerMarker.d.ts +0 -0
- /package/dist/{src/ImageViewer → ImageViewer}/events.d.ts +0 -0
- /package/dist/{src/ImageViewer → ImageViewer}/index.d.ts +0 -0
- /package/dist/{src/ImageViewer → ImageViewer}/monkeyPatchML.d.ts +0 -0
- /package/dist/{src/ImageViewer → ImageViewer}/symbols.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/AttributionControl.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/BoxZoomHandler.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/CanvasSource.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/CooperativeGesturesHandler.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/FullscreenControl.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/GeoJSONSource.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/GeolocateControl.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/ImageSource.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/KeyboardHandler.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/LogoControl.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/MapMouseEvent.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/MapTouchEvent.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/MapWheelEvent.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/Marker.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/NavigationControl.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/Popup.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/RasterDEMTileSource.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/RasterTileSource.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/ScaleControl.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/ScrollZoomHandler.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/Style.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/TerrainControl.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/TwoFingersTouchPitchHandler.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/VectorTileSource.d.ts +0 -0
- /package/dist/{src/MLAdapters → MLAdapters}/VideoSource.d.ts +0 -0
- /package/dist/{src/Map.d.ts → Map.d.ts} +0 -0
- /package/dist/{src/MaptilerAnimation → MaptilerAnimation}/AnimationManager.d.ts +0 -0
- /package/dist/{src/MaptilerAnimation → MaptilerAnimation}/MaptilerAnimation.d.ts +0 -0
- /package/dist/{src/MaptilerAnimation → MaptilerAnimation}/animation-helpers.d.ts +0 -0
- /package/dist/{src/MaptilerAnimation → MaptilerAnimation}/easing.d.ts +0 -0
- /package/dist/{src/MaptilerAnimation → MaptilerAnimation}/index.d.ts +0 -0
- /package/dist/{src/MaptilerAnimation → MaptilerAnimation}/types.d.ts +0 -0
- /package/dist/{src/Point.d.ts → Point.d.ts} +0 -0
- /package/dist/{src/Telemetry.d.ts → Telemetry.d.ts} +0 -0
- /package/dist/{src/caching.d.ts → caching.d.ts} +0 -0
- /package/dist/{src/config.d.ts → config.d.ts} +0 -0
- /package/dist/{src/constants → constants}/defaults.d.ts +0 -0
- /package/dist/{src/controls → controls}/ImageViewerFitImageToBoundsControl.d.ts +0 -0
- /package/dist/{src/controls → controls}/MaptilerCustomControl.d.ts +0 -0
- /package/dist/{src/controls → controls}/MaptilerExternalControl.d.ts +0 -0
- /package/dist/{src/controls → controls}/MaptilerGeolocateControl.d.ts +0 -0
- /package/dist/{src/controls → controls}/MaptilerLogoControl.d.ts +0 -0
- /package/dist/{src/controls → controls}/MaptilerNavigationControl.d.ts +0 -0
- /package/dist/{src/controls → controls}/MaptilerProjectionControl.d.ts +0 -0
- /package/dist/{src/controls → controls}/MaptilerTerrainControl.d.ts +0 -0
- /package/dist/{src/controls → controls}/Minimap.d.ts +0 -0
- /package/dist/{src/controls → controls}/index.d.ts +0 -0
- /package/dist/{src/converters → converters}/index.d.ts +0 -0
- /package/dist/{src/converters → converters}/xml.d.ts +0 -0
- /package/dist/{src/custom-layers → custom-layers}/AnimatedRouteLayer/AnimatedRouteLayer.d.ts +0 -0
- /package/dist/{src/custom-layers → custom-layers}/AnimatedRouteLayer/index.d.ts +0 -0
- /package/dist/{src/custom-layers → custom-layers}/CubemapLayer/CubemapLayer.d.ts +0 -0
- /package/dist/{src/custom-layers → custom-layers}/CubemapLayer/constants.d.ts +0 -0
- /package/dist/{src/custom-layers → custom-layers}/CubemapLayer/index.d.ts +0 -0
- /package/dist/{src/custom-layers → custom-layers}/CubemapLayer/loadCubemapTexture.d.ts +0 -0
- /package/dist/{src/custom-layers → custom-layers}/CubemapLayer/types.d.ts +0 -0
- /package/dist/{src/custom-layers → custom-layers}/RadialGradientLayer/RadialGradientLayer.d.ts +0 -0
- /package/dist/{src/custom-layers → custom-layers}/RadialGradientLayer/index.d.ts +0 -0
- /package/dist/{src/custom-layers → custom-layers}/RadialGradientLayer/types.d.ts +0 -0
- /package/dist/{src/custom-layers → custom-layers}/extractCustomLayerStyle.d.ts +0 -0
- /package/dist/{src/custom-layers → custom-layers}/index.d.ts +0 -0
- /package/dist/{src/geocoding.d.ts → geocoding.d.ts} +0 -0
- /package/dist/{src/helpers → helpers}/index.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/screenshot.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/stylehelper.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/vectorlayerhelpers.d.ts +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/language.d.ts → language.d.ts} +0 -0
- /package/dist/{src/mapstyle.d.ts → mapstyle.d.ts} +0 -0
- /package/dist/{src/ml-types.d.ts → ml-types.d.ts} +0 -0
- /package/dist/{src/polyfills.d.ts → polyfills.d.ts} +0 -0
- /package/dist/{src/tools.d.ts → tools.d.ts} +0 -0
- /package/dist/{src/types.d.ts → types.d.ts} +0 -0
- /package/dist/{src/utils → utils}/array.d.ts +0 -0
- /package/dist/{src/utils → utils}/dom.d.ts +0 -0
- /package/dist/{src/utils → utils}/errors.d.ts +0 -0
- /package/dist/{src/utils → utils}/geo-utils.d.ts +0 -0
- /package/dist/{src/utils → utils}/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/json.d.ts +0 -0
- /package/dist/{src/utils → utils}/logSDKVersion.d.ts +0 -0
- /package/dist/{src/utils → utils}/math-utils.d.ts +0 -0
- /package/dist/{src/utils → utils}/object.d.ts +0 -0
- /package/dist/{src/utils → utils}/string.d.ts +0 -0
- /package/dist/{src/utils → utils}/webgl-utils.d.ts +0 -0
package/dist/maptiler-sdk.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './index'
|
|
2
2
|
export {}
|
package/dist/maptiler-sdk.mjs
CHANGED
|
@@ -15176,7 +15176,7 @@ class pf {
|
|
|
15176
15176
|
}
|
|
15177
15177
|
}
|
|
15178
15178
|
function So() {
|
|
15179
|
-
return "4.0.
|
|
15179
|
+
return "4.0.1";
|
|
15180
15180
|
}
|
|
15181
15181
|
const ff = k.Map, df = k.Marker, hf = k.Popup, mf = k.Style, yf = k.CanvasSource, gf = k.GeoJSONSource, vf = k.ImageSource, bf = k.RasterTileSource, wf = k.RasterDEMTileSource, Sf = k.VectorTileSource, xf = k.VideoSource, kf = k.NavigationControl, Ef = k.GeolocateControl, Lf = k.AttributionControl, Cf = k.LogoControl, Af = k.ScaleControl, Tf = k.FullscreenControl, If = k.TerrainControl, _f = k.BoxZoomHandler, Mf = k.ScrollZoomHandler, Pf = k.CooperativeGesturesHandler, Rf = k.KeyboardHandler, Of = k.TwoFingersTouchPitchHandler, zf = k.MapWheelEvent, Ff = k.MapTouchEvent, $f = k.MapMouseEvent, Nf = k.config, jf = k.getVersion, {
|
|
15182
15182
|
setRTLTextPlugin: Df,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maptiler/sdk",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "The Javascript & TypeScript map SDK tailored for MapTiler Cloud",
|
|
5
5
|
"author": "MapTiler",
|
|
6
6
|
"module": "dist/maptiler-sdk.mjs",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"import": "./dist/maptiler-sdk.css"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
23
26
|
"browserslist": [
|
|
24
27
|
"defaults",
|
|
25
28
|
"not op_mini all"
|
|
@@ -98,7 +101,7 @@
|
|
|
98
101
|
},
|
|
99
102
|
"dependencies": {
|
|
100
103
|
"@maplibre/maplibre-gl-style-spec": "^24.7.0",
|
|
101
|
-
"@maptiler/client": "^3.0.0
|
|
104
|
+
"@maptiler/client": "^3.0.0",
|
|
102
105
|
"eslint-plugin-compat": "^6.1.0",
|
|
103
106
|
"events": "^3.3.0",
|
|
104
107
|
"gl-matrix": "^3.4.4",
|
package/.editorconfig
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# EditorConfig is awesome: https://EditorConfig.org
|
|
2
|
-
|
|
3
|
-
# top-most EditorConfig file
|
|
4
|
-
root = true
|
|
5
|
-
|
|
6
|
-
[*]
|
|
7
|
-
indent_style = space
|
|
8
|
-
indent_size = 2
|
|
9
|
-
end_of_line = LF
|
|
10
|
-
charset = utf-8
|
|
11
|
-
trim_trailing_whitespace = false
|
|
12
|
-
insert_final_newline = true
|
|
13
|
-
max_line_length = 180
|
package/.husky/pre-commit
DELETED
package/e2e/global.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Map, StyleSpecificationWithMetaData, type MapOptions } from "../src";
|
|
2
|
-
|
|
3
|
-
declare global {
|
|
4
|
-
interface Window {
|
|
5
|
-
__map: Map;
|
|
6
|
-
__pageObjects: Record<string, any>;
|
|
7
|
-
__pageLoadTimeout: number;
|
|
8
|
-
notifyScreenshotStateReady: (data: TTestTransferData) => Promise<void>;
|
|
9
|
-
notifyTest: (data: TTestTransferData) => Promise<void>;
|
|
10
|
-
setFixtureWithConfig: (config: { id: string; options: MapOptions; requiresScreenShot?: boolean }) => Promise<void>;
|
|
11
|
-
setFixtureMapStyle: (style: string | StyleSpecificationWithMetaData) => Promise<void>;
|
|
12
|
-
__MT_SDK_VERSION__: string;
|
|
13
|
-
__MT_NODE_ENV__: string | undefined;
|
|
14
|
-
__testUtils?: {
|
|
15
|
-
getHaloConfig: () => any;
|
|
16
|
-
getSpaceConfig: () => any;
|
|
17
|
-
hasHalo: () => boolean;
|
|
18
|
-
hasSpace: () => boolean;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
type TTestTransferData = string | number | boolean | string[] | number[] | boolean[] | null | Record<string, unknown> | [number, number];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export {};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "FeatureCollection",
|
|
3
|
-
"features": [
|
|
4
|
-
{
|
|
5
|
-
"type": "Feature",
|
|
6
|
-
"properties": {
|
|
7
|
-
"pitch": [
|
|
8
|
-
30,
|
|
9
|
-
40,
|
|
10
|
-
50,
|
|
11
|
-
60,
|
|
12
|
-
50,
|
|
13
|
-
40,
|
|
14
|
-
30
|
|
15
|
-
],
|
|
16
|
-
"bearing": [
|
|
17
|
-
0,
|
|
18
|
-
180,
|
|
19
|
-
360
|
|
20
|
-
],
|
|
21
|
-
"zoom": [
|
|
22
|
-
13.5,
|
|
23
|
-
14,
|
|
24
|
-
14.5,
|
|
25
|
-
15,
|
|
26
|
-
14.5,
|
|
27
|
-
14,
|
|
28
|
-
13.5
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"geometry": {
|
|
32
|
-
"coordinates": [
|
|
33
|
-
[
|
|
34
|
-
-5.513465218122661,
|
|
35
|
-
55.44452556522981
|
|
36
|
-
],
|
|
37
|
-
[
|
|
38
|
-
-5.498757996681263,
|
|
39
|
-
55.45488849896259
|
|
40
|
-
],
|
|
41
|
-
[
|
|
42
|
-
-5.4776627901701715,
|
|
43
|
-
55.459774141237716
|
|
44
|
-
],
|
|
45
|
-
[
|
|
46
|
-
-5.450773829757111,
|
|
47
|
-
55.45446729456921
|
|
48
|
-
],
|
|
49
|
-
[
|
|
50
|
-
-5.434581030391769,
|
|
51
|
-
55.44241894502119
|
|
52
|
-
],
|
|
53
|
-
[
|
|
54
|
-
-5.434433020938883,
|
|
55
|
-
55.42337006037573
|
|
56
|
-
],
|
|
57
|
-
[
|
|
58
|
-
-5.447655667245527,
|
|
59
|
-
55.40895140980018
|
|
60
|
-
],
|
|
61
|
-
[
|
|
62
|
-
-5.474692405196635,
|
|
63
|
-
55.40169789075969
|
|
64
|
-
],
|
|
65
|
-
[
|
|
66
|
-
-5.504997423959253,
|
|
67
|
-
55.410637475280794
|
|
68
|
-
],
|
|
69
|
-
[
|
|
70
|
-
-5.520595992154796,
|
|
71
|
-
55.42809094495976
|
|
72
|
-
],
|
|
73
|
-
[
|
|
74
|
-
-5.513910891499705,
|
|
75
|
-
55.44393572290733
|
|
76
|
-
]
|
|
77
|
-
],
|
|
78
|
-
"type": "LineString"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>MapTiler E2E Animated Route Layer</title>
|
|
7
|
-
<style>
|
|
8
|
-
#map {
|
|
9
|
-
width: 100vw;
|
|
10
|
-
height: 100vh;
|
|
11
|
-
border: 1px solid red;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
body {
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
}
|
|
18
|
-
</style>
|
|
19
|
-
</head>
|
|
20
|
-
<body>
|
|
21
|
-
<div id="map"></div>
|
|
22
|
-
<script type="module" src="/src/animatedRouteLayer.ts"></script>
|
|
23
|
-
</body>
|
|
24
|
-
</html>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>MapTiler E2E Halo Space</title>
|
|
7
|
-
<style>
|
|
8
|
-
#map {
|
|
9
|
-
width: 100vw;
|
|
10
|
-
height: 100vh;
|
|
11
|
-
border: 1px solid red;
|
|
12
|
-
background: repeating-conic-gradient(#eee 0% 25%, #ccc 0% 50%) 0% 0% / 40px 40px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
body {
|
|
16
|
-
margin: 0;
|
|
17
|
-
padding: 0;
|
|
18
|
-
}
|
|
19
|
-
</style>
|
|
20
|
-
</head>
|
|
21
|
-
<body>
|
|
22
|
-
<div id="map"></div>
|
|
23
|
-
<script type="module" src="/src/haloSpace.ts"></script>
|
|
24
|
-
</body>
|
|
25
|
-
</html>
|
package/e2e/public/mapLoad.html
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>MapTiler E2E Map Load</title>
|
|
7
|
-
<style>
|
|
8
|
-
#map {
|
|
9
|
-
width: 100vw;
|
|
10
|
-
height: 100vh;
|
|
11
|
-
border: 1px solid red;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
body {
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
}
|
|
18
|
-
</style>
|
|
19
|
-
</head>
|
|
20
|
-
<body>
|
|
21
|
-
<div id="map"></div>
|
|
22
|
-
<script type="module" src="/src/mapLoad.ts"></script>
|
|
23
|
-
</body>
|
|
24
|
-
</html>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>MapTiler E2E RTL Text Plugin</title>
|
|
7
|
-
<style>
|
|
8
|
-
#map {
|
|
9
|
-
width: 100vw;
|
|
10
|
-
height: 100vh;
|
|
11
|
-
border: 1px solid red;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
body {
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
}
|
|
18
|
-
</style>
|
|
19
|
-
</head>
|
|
20
|
-
<body>
|
|
21
|
-
<div id="map"></div>
|
|
22
|
-
<script type="module" src="/src/rtlTextPlugin.ts"></script>
|
|
23
|
-
</body>
|
|
24
|
-
</html>
|
package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-0-chromium-linux.png
DELETED
|
Binary file
|
package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-1-chromium-linux.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-2-chromium-linux.png
DELETED
|
Binary file
|
package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-3-chromium-linux.png
DELETED
|
Binary file
|
package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-4-chromium-linux.png
DELETED
|
Binary file
|
package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-5-chromium-linux.png
DELETED
|
Binary file
|
package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-6-chromium-linux.png
DELETED
|
Binary file
|
package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-7-chromium-linux.png
DELETED
|
Binary file
|
package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-8-chromium-linux.png
DELETED
|
Binary file
|
package/e2e/snapshots/tests/AnimatedRouteLayer.test.ts-snapshots/animated-route-9-chromium-linux.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { expect, test } from "@playwright/test";
|
|
2
|
-
import getMapInstanceForFixture from "./helpers/getMapInstanceForFixture";
|
|
3
|
-
import { AnimatedRouteLayer } from "index";
|
|
4
|
-
import { Map as SDKMap } from "../../src";
|
|
5
|
-
import expected from "./expected-results/animatedRouteLayer-1.json" assert { type: "json" };
|
|
6
|
-
|
|
7
|
-
test.setTimeout(60000);
|
|
8
|
-
|
|
9
|
-
test("Follows the correct path taking screenshots at each interval", async ({ page }) => {
|
|
10
|
-
await getMapInstanceForFixture({
|
|
11
|
-
fixture: "animatedRouteLayer",
|
|
12
|
-
page,
|
|
13
|
-
timeout: 20000,
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
expect(await page.title()).toBe("MapTiler E2E Animated Route Layer");
|
|
17
|
-
|
|
18
|
-
await page.exposeFunction("notifyScreenshotStateReady", async (data: Record<string, TTestTransferData>) => {
|
|
19
|
-
await expect(page).toHaveScreenshot(`animated-route-${data.frame}.png`, { timeout: 10000 });
|
|
20
|
-
expect(data).toEqual(expected[data.frame as number]);
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
await page.evaluate(async () => {
|
|
24
|
-
const NUM_SCREENSHOTS = 20;
|
|
25
|
-
const NUM_FRAMES_BETWEEN_SCREENSHOTS = 20;
|
|
26
|
-
|
|
27
|
-
const { animatedRouteLayer } = window.__pageObjects as { animatedRouteLayer: AnimatedRouteLayer };
|
|
28
|
-
const map = window.__map as SDKMap;
|
|
29
|
-
|
|
30
|
-
for (let i = 0; i < NUM_SCREENSHOTS; i++) {
|
|
31
|
-
for (let j = 0; j < NUM_FRAMES_BETWEEN_SCREENSHOTS; j++) {
|
|
32
|
-
animatedRouteLayer.updateManual();
|
|
33
|
-
}
|
|
34
|
-
await window.notifyScreenshotStateReady({
|
|
35
|
-
frame: i,
|
|
36
|
-
center: map.getCenter().toArray(),
|
|
37
|
-
zoom: map.getZoom(),
|
|
38
|
-
pitch: map.getPitch(),
|
|
39
|
-
bearing: map.getBearing(),
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
await page.clock.runFor(10000);
|
|
45
|
-
});
|
package/e2e/tests/consts.ts
DELETED
|
File without changes
|