@maptrip/map-tiles 1.1.0 → 1.2.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/README.md +5 -3
- package/dist/api-extensions/google/MapTripGoogleMapType.d.ts +28 -0
- package/dist/api-extensions/leaflet/MapTripLeafletGridLayer.d.ts +4 -0
- package/dist/api-extensions/openlayers/MapTripOpenLayersSource.d.ts +19 -0
- package/dist/core/CollisionDetector.d.ts +14 -0
- package/dist/core/VectorTileFactory.d.ts +64 -0
- package/dist/core/VectorTileLoader.d.ts +40 -0
- package/dist/core/VectorTileRenderer.d.ts +123 -0
- package/dist/core/constants.d.ts +10 -0
- package/dist/core/rendering_config_default.d.ts +658 -0
- package/dist/core/rendering_config_grayscale.d.ts +638 -0
- package/dist/core/rendering_config_traffic.d.ts +39 -0
- package/dist/map-tiles.d.ts +9 -0
- package/dist/map-tiles.js +23647 -10188
- package/dist/map-tiles.js.map +1 -0
- package/dist/types/interfaces.d.ts +135 -0
- package/lib/api-extensions/google/MapTripGoogleMapType.ts +40 -0
- package/lib/api-extensions/leaflet/MapTripLeafletGridLayer.ts +44 -0
- package/lib/api-extensions/openlayers/MapTripOpenLayersSource.ts +61 -0
- package/lib/core/CollisionDetector.ts +95 -0
- package/lib/core/VectorTileFactory.ts +327 -0
- package/lib/core/VectorTileLoader.ts +165 -0
- package/lib/core/VectorTileRenderer.ts +1212 -0
- package/lib/core/constants.ts +21 -0
- package/lib/core/rendering_config_default.ts +1131 -0
- package/lib/{main.js → main.ts} +2 -0
- package/lib/types/interfaces.ts +147 -0
- package/package.json +19 -14
- package/lib/api-extensions/google/MapTripGoogleMapType.js +0 -25
- package/lib/api-extensions/leaflet/MapTripLeafletGridLayer.js +0 -24
- package/lib/api-extensions/openlayers/MapTripOpenLayersSource.js +0 -43
- package/lib/core/CollisionDetector.js +0 -65
- package/lib/core/VectorTileFactory.js +0 -245
- package/lib/core/VectorTileLoader.js +0 -132
- package/lib/core/VectorTileRenderer.js +0 -826
- package/lib/core/constants.js +0 -18
- package/lib/core/rendering_config_default.js +0 -1107
- /package/lib/core/{rendering_config_grayscale.js → rendering_config_grayscale.ts} +0 -0
- /package/lib/core/{rendering_config_traffic.js → rendering_config_traffic.ts} +0 -0
package/lib/core/constants.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export const URL_TEMPLATE = "https://v${index}.maptrip.de/?tilex=${x}&tiley=${y}&acao=true&context=tomtom${z}&project=${project}&projection=wgs84";
|
|
2
|
-
|
|
3
|
-
export const PROVIDER_PROJECTS = {
|
|
4
|
-
'tomtom': 'TomTom_latest',
|
|
5
|
-
'here': 'HERE_latest',
|
|
6
|
-
'openstreetmap': 'OSM_latest'
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export const PROVIDER_TRAFFIC = {
|
|
10
|
-
'tomtom': 'https://v0.maptrip.de/tiles?project=TrafficMobileTomTom_EUROPE&tilex=${x}&tiley=${y}&acao=true&context=traffic${z}&projection=wgs84',
|
|
11
|
-
'here': 'https://v0.maptrip.de/tiles?project=TrafficMobileHere_EUROPE&tilex=${x}&tiley=${y}&acao=true&context=traffic${z}&projection=wgs84',
|
|
12
|
-
'openstreetmap': null
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const MIN_ZOOM = 2;
|
|
16
|
-
export const MAX_ZOOM = 18;
|
|
17
|
-
|
|
18
|
-
export const ATTRIBUTION = '© <a href="https://maptrip.de/" target="_blank">infoware GmbH</a>';
|