@maptiler/sdk 1.2.0 → 2.0.0
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/.eslintrc.cjs +1 -0
- package/dist/maptiler-sdk.css +1 -1
- package/dist/maptiler-sdk.d.ts +190 -241
- package/dist/maptiler-sdk.min.mjs +3 -3
- package/dist/maptiler-sdk.mjs +487 -460
- package/dist/maptiler-sdk.mjs.map +1 -1
- package/package.json +3 -3
- package/readme.md +211 -6
- package/CHANGELOG.md +0 -157
- package/colorramp.md +0 -93
- package/dist/maptiler-sdk.umd.js +0 -6997
- package/dist/maptiler-sdk.umd.js.map +0 -1
- package/dist/maptiler-sdk.umd.min.js +0 -582
- package/src/AttributionControl.ts +0 -13
- package/src/CanvasSource.ts +0 -13
- package/src/FullscreenControl.ts +0 -13
- package/src/GeoJSONSource.ts +0 -13
- package/src/GeolocateControl.ts +0 -13
- package/src/ImageSource.ts +0 -13
- package/src/LogoControl.ts +0 -13
- package/src/Map.ts +0 -1328
- package/src/MaptilerGeolocateControl.ts +0 -207
- package/src/MaptilerLogoControl.ts +0 -58
- package/src/MaptilerNavigationControl.ts +0 -69
- package/src/MaptilerTerrainControl.ts +0 -72
- package/src/Marker.ts +0 -13
- package/src/Minimap.ts +0 -373
- package/src/NavigationControl.ts +0 -13
- package/src/Point.ts +0 -334
- package/src/Popup.ts +0 -13
- package/src/RasterDEMTileSource.ts +0 -13
- package/src/RasterTileSource.ts +0 -13
- package/src/ScaleControl.ts +0 -13
- package/src/Style.ts +0 -13
- package/src/TerrainControl.ts +0 -13
- package/src/VectorTileSource.ts +0 -13
- package/src/VideoSource.ts +0 -13
- package/src/colorramp.ts +0 -1216
- package/src/config.ts +0 -96
- package/src/converters/index.ts +0 -1
- package/src/converters/xml.ts +0 -681
- package/src/defaults.ts +0 -20
- package/src/helpers/index.ts +0 -27
- package/src/helpers/stylehelper.ts +0 -395
- package/src/helpers/vectorlayerhelpers.ts +0 -1511
- package/src/index.ts +0 -242
- package/src/language.ts +0 -183
- package/src/mapstyle.ts +0 -46
- package/src/style/style_template.css +0 -146
- package/src/style/svg/v6-compass.svg +0 -12
- package/src/style/svg/v6-fullscreen-off.svg +0 -7
- package/src/style/svg/v6-fullscreen.svg +0 -7
- package/src/style/svg/v6-geolocate-active-error.svg +0 -10
- package/src/style/svg/v6-geolocate-active.svg +0 -7
- package/src/style/svg/v6-geolocate-background.svg +0 -8
- package/src/style/svg/v6-geolocate-disabled.svg +0 -10
- package/src/style/svg/v6-geolocate.svg +0 -7
- package/src/style/svg/v6-terrain-on.svg +0 -7
- package/src/style/svg/v6-terrain.svg +0 -7
- package/src/style/svg/v6-zoom-minus.svg +0 -7
- package/src/style/svg/v6-zoom-plus.svg +0 -7
- package/src/tools.ts +0 -171
- package/src/unit.ts +0 -1
package/src/Popup.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre Popup to make it fully type compatible with the SDK
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import maplibregl from "maplibre-gl";
|
|
6
|
-
import type { Map as MapMLGL } from "maplibre-gl";
|
|
7
|
-
import { Map } from "./Map";
|
|
8
|
-
|
|
9
|
-
export class Popup extends maplibregl.Popup {
|
|
10
|
-
addTo(map: Map | MapMLGL): this {
|
|
11
|
-
return super.addTo(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre RasterDEMTileSource to make it fully type compatible with the SDK
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import maplibregl from "maplibre-gl";
|
|
6
|
-
import type { Map as MapMLGL } from "maplibre-gl";
|
|
7
|
-
import { Map } from "./Map";
|
|
8
|
-
|
|
9
|
-
export class RasterDEMTileSource extends maplibregl.RasterDEMTileSource {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/RasterTileSource.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre RasterTileSource to make it fully type compatible with the SDK
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import maplibregl from "maplibre-gl";
|
|
6
|
-
import type { Map as MapMLGL } from "maplibre-gl";
|
|
7
|
-
import { Map } from "./Map";
|
|
8
|
-
|
|
9
|
-
export class RasterTileSource extends maplibregl.RasterTileSource {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/ScaleControl.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre ScaleControl to make it fully type compatible with the SDK
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import maplibregl from "maplibre-gl";
|
|
6
|
-
import type { Map as MapMLGL } from "maplibre-gl";
|
|
7
|
-
import { Map } from "./Map";
|
|
8
|
-
|
|
9
|
-
export class ScaleControl extends maplibregl.ScaleControl {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
return super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/Style.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre Style to make it fully type compatible with the SDK
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import maplibregl from "maplibre-gl";
|
|
6
|
-
import type { Map as MapMLGL, StyleOptions } from "maplibre-gl";
|
|
7
|
-
import { Map } from "./Map";
|
|
8
|
-
|
|
9
|
-
export class Style extends maplibregl.Style {
|
|
10
|
-
constructor(map: Map, options: StyleOptions = {}) {
|
|
11
|
-
super(map as MapMLGL, options);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/TerrainControl.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre TerrainControl to make it fully type compatible with the SDK
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import maplibregl from "maplibre-gl";
|
|
6
|
-
import type { Map as MapMLGL } from "maplibre-gl";
|
|
7
|
-
import { Map } from "./Map";
|
|
8
|
-
|
|
9
|
-
export class TerrainControl extends maplibregl.TerrainControl {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
return super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/VectorTileSource.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre VectorTileSource to make it fully type compatible with the SDK
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import maplibregl from "maplibre-gl";
|
|
6
|
-
import type { Map as MapMLGL } from "maplibre-gl";
|
|
7
|
-
import { Map } from "./Map";
|
|
8
|
-
|
|
9
|
-
export class VectorTileSource extends maplibregl.VectorTileSource {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/VideoSource.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre VideoSource to make it fully type compatible with the SDK
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import maplibregl from "maplibre-gl";
|
|
6
|
-
import type { Map as MapMLGL } from "maplibre-gl";
|
|
7
|
-
import { Map } from "./Map";
|
|
8
|
-
|
|
9
|
-
export class VideoSource extends maplibregl.VideoSource {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|