@maptiler/sdk 1.2.1 → 2.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/.eslintrc.cjs +1 -0
- package/dist/maptiler-sdk.css +1 -1
- package/dist/maptiler-sdk.d.ts +171 -240
- package/dist/maptiler-sdk.min.mjs +3 -3
- package/dist/maptiler-sdk.mjs +461 -458
- package/dist/maptiler-sdk.mjs.map +1 -1
- package/package.json +3 -3
- package/readme.md +16 -1
- package/CHANGELOG.md +0 -168
- package/colorramp.md +0 -93
- package/dist/maptiler-sdk.umd.js +0 -7702
- 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 -1352
- 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 -201
- 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
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre AttributionControl 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 AttributionControl extends maplibregl.AttributionControl {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
return super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/CanvasSource.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre CanvasSource 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 CanvasSource extends maplibregl.CanvasSource {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/FullscreenControl.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre FullscreenControl 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 FullscreenControl extends maplibregl.FullscreenControl {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
return super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/GeoJSONSource.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre GeoJSONSource 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 GeoJSONSource extends maplibregl.GeoJSONSource {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/GeolocateControl.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre GeolocateControl 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 GeolocateControl extends maplibregl.GeolocateControl {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
return super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/ImageSource.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre ImageSource 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 ImageSource extends maplibregl.ImageSource {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/LogoControl.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an extension of MapLibre LogoControl 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 LogoControl extends maplibregl.LogoControl {
|
|
10
|
-
onAdd(map: Map | MapMLGL) {
|
|
11
|
-
return super.onAdd(map as MapMLGL);
|
|
12
|
-
}
|
|
13
|
-
}
|