@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.
Files changed (63) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/dist/maptiler-sdk.css +1 -1
  3. package/dist/maptiler-sdk.d.ts +171 -240
  4. package/dist/maptiler-sdk.min.mjs +3 -3
  5. package/dist/maptiler-sdk.mjs +461 -458
  6. package/dist/maptiler-sdk.mjs.map +1 -1
  7. package/package.json +3 -3
  8. package/readme.md +16 -1
  9. package/CHANGELOG.md +0 -168
  10. package/colorramp.md +0 -93
  11. package/dist/maptiler-sdk.umd.js +0 -7702
  12. package/dist/maptiler-sdk.umd.js.map +0 -1
  13. package/dist/maptiler-sdk.umd.min.js +0 -582
  14. package/src/AttributionControl.ts +0 -13
  15. package/src/CanvasSource.ts +0 -13
  16. package/src/FullscreenControl.ts +0 -13
  17. package/src/GeoJSONSource.ts +0 -13
  18. package/src/GeolocateControl.ts +0 -13
  19. package/src/ImageSource.ts +0 -13
  20. package/src/LogoControl.ts +0 -13
  21. package/src/Map.ts +0 -1352
  22. package/src/MaptilerGeolocateControl.ts +0 -207
  23. package/src/MaptilerLogoControl.ts +0 -58
  24. package/src/MaptilerNavigationControl.ts +0 -69
  25. package/src/MaptilerTerrainControl.ts +0 -72
  26. package/src/Marker.ts +0 -13
  27. package/src/Minimap.ts +0 -373
  28. package/src/NavigationControl.ts +0 -13
  29. package/src/Point.ts +0 -334
  30. package/src/Popup.ts +0 -13
  31. package/src/RasterDEMTileSource.ts +0 -13
  32. package/src/RasterTileSource.ts +0 -13
  33. package/src/ScaleControl.ts +0 -13
  34. package/src/Style.ts +0 -13
  35. package/src/TerrainControl.ts +0 -13
  36. package/src/VectorTileSource.ts +0 -13
  37. package/src/VideoSource.ts +0 -13
  38. package/src/colorramp.ts +0 -1216
  39. package/src/config.ts +0 -96
  40. package/src/converters/index.ts +0 -1
  41. package/src/converters/xml.ts +0 -681
  42. package/src/defaults.ts +0 -20
  43. package/src/helpers/index.ts +0 -27
  44. package/src/helpers/stylehelper.ts +0 -395
  45. package/src/helpers/vectorlayerhelpers.ts +0 -1511
  46. package/src/index.ts +0 -201
  47. package/src/language.ts +0 -183
  48. package/src/mapstyle.ts +0 -46
  49. package/src/style/style_template.css +0 -146
  50. package/src/style/svg/v6-compass.svg +0 -12
  51. package/src/style/svg/v6-fullscreen-off.svg +0 -7
  52. package/src/style/svg/v6-fullscreen.svg +0 -7
  53. package/src/style/svg/v6-geolocate-active-error.svg +0 -10
  54. package/src/style/svg/v6-geolocate-active.svg +0 -7
  55. package/src/style/svg/v6-geolocate-background.svg +0 -8
  56. package/src/style/svg/v6-geolocate-disabled.svg +0 -10
  57. package/src/style/svg/v6-geolocate.svg +0 -7
  58. package/src/style/svg/v6-terrain-on.svg +0 -7
  59. package/src/style/svg/v6-terrain.svg +0 -7
  60. package/src/style/svg/v6-zoom-minus.svg +0 -7
  61. package/src/style/svg/v6-zoom-plus.svg +0 -7
  62. package/src/tools.ts +0 -171
  63. 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
- }
@@ -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
- }
@@ -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
- }
@@ -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
- }
@@ -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
- }
@@ -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
- }