@maptrip/map-tiles 1.1.1 → 1.2.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 (39) hide show
  1. package/README.md +2 -0
  2. package/dist/api-extensions/google/MapTripGoogleMapType.d.ts +28 -0
  3. package/dist/api-extensions/leaflet/MapTripLeafletGridLayer.d.ts +25 -0
  4. package/dist/api-extensions/openlayers/MapTripOpenLayersSource.d.ts +19 -0
  5. package/dist/core/CollisionDetector.d.ts +14 -0
  6. package/dist/core/VectorTileFactory.d.ts +64 -0
  7. package/dist/core/VectorTileLoader.d.ts +40 -0
  8. package/dist/core/VectorTileRenderer.d.ts +123 -0
  9. package/dist/core/constants.d.ts +10 -0
  10. package/dist/core/rendering_config_default.d.ts +658 -0
  11. package/dist/core/rendering_config_grayscale.d.ts +672 -0
  12. package/dist/core/rendering_config_traffic.d.ts +39 -0
  13. package/dist/map-tiles.d.ts +9 -0
  14. package/dist/map-tiles.js +22856 -9398
  15. package/dist/map-tiles.js.map +1 -0
  16. package/dist/types/interfaces.d.ts +134 -0
  17. package/lib/api-extensions/google/MapTripGoogleMapType.ts +43 -0
  18. package/lib/api-extensions/leaflet/MapTripLeafletGridLayer.ts +48 -0
  19. package/lib/api-extensions/openlayers/MapTripOpenLayersSource.ts +62 -0
  20. package/lib/core/CollisionDetector.ts +95 -0
  21. package/lib/core/VectorTileFactory.ts +331 -0
  22. package/lib/core/VectorTileLoader.ts +165 -0
  23. package/lib/core/VectorTileRenderer.ts +1220 -0
  24. package/lib/core/constants.ts +21 -0
  25. package/lib/core/rendering_config_grayscale.ts +1129 -0
  26. package/lib/types/interfaces.ts +147 -0
  27. package/package.json +22 -17
  28. package/lib/api-extensions/google/MapTripGoogleMapType.js +0 -25
  29. package/lib/api-extensions/leaflet/MapTripLeafletGridLayer.js +0 -24
  30. package/lib/api-extensions/openlayers/MapTripOpenLayersSource.js +0 -43
  31. package/lib/core/CollisionDetector.js +0 -65
  32. package/lib/core/VectorTileFactory.js +0 -245
  33. package/lib/core/VectorTileLoader.js +0 -132
  34. package/lib/core/VectorTileRenderer.js +0 -826
  35. package/lib/core/constants.js +0 -18
  36. package/lib/core/rendering_config_grayscale.js +0 -1107
  37. /package/lib/core/{rendering_config_default.js → rendering_config_default.ts} +0 -0
  38. /package/lib/core/{rendering_config_traffic.js → rendering_config_traffic.ts} +0 -0
  39. /package/lib/{main.js → main.ts} +0 -0
@@ -0,0 +1,21 @@
1
+ export const URL_TEMPLATE =
2
+ "https://v${index}.maptrip.de/?tilex=${x}&tiley=${y}&acao=true&context=tomtom${z}&project=${project}&projection=wgs84";
3
+
4
+ export const PROVIDER_PROJECTS: { [key: string]: string } = {
5
+ tomtom: "TomTom_latest",
6
+ here: "HERE_PLANET_2023_03",
7
+ openstreetmap: "OSM_PLANET_2023_03",
8
+ };
9
+
10
+ export const PROVIDER_TRAFFIC: { [key: string]: string | null } = {
11
+ tomtom:
12
+ "https://v0.maptrip.de/tiles?project=TrafficMobileTomTom_EUROPE&tilex=${x}&tiley=${y}&acao=true&context=traffic${z}&projection=wgs84",
13
+ here: "https://v0.maptrip.de/tiles?project=TrafficMobileHere_EUROPE&tilex=${x}&tiley=${y}&acao=true&context=traffic${z}&projection=wgs84",
14
+ openstreetmap: null,
15
+ };
16
+
17
+ export const MIN_ZOOM = 2;
18
+ export const MAX_ZOOM = 18;
19
+
20
+ export const ATTRIBUTION =
21
+ '&#169;&nbsp;<a href="https://maptrip.de/" target="_blank">infoware GmbH</a>';