@maptrip/map-tiles 1.0.8 → 1.1.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/README.md +45 -5
- package/dist/map-tiles.js +160 -135
- package/lib/core/VectorTileLoader.js +6 -1
- package/lib/core/rendering_config_default.js +1128 -1104
- package/package.json +1 -1
|
@@ -109,7 +109,11 @@ class VectorTileLoader {
|
|
|
109
109
|
this._numLoading--;
|
|
110
110
|
this.loadNext();
|
|
111
111
|
}.bind(this);
|
|
112
|
-
|
|
112
|
+
|
|
113
|
+
if (this._properties.detourProfile) {
|
|
114
|
+
url += '&SP_USE=' + encodeURIComponent(this._properties.detourProfile);
|
|
115
|
+
}
|
|
116
|
+
|
|
113
117
|
xhr.open('GET', url, true);
|
|
114
118
|
xhr.setRequestHeader('Authorization', `Bearer ${tile.tile.token}`);
|
|
115
119
|
xhr.timeout = this._properties.timeout;
|
|
@@ -119,6 +123,7 @@ class VectorTileLoader {
|
|
|
119
123
|
}
|
|
120
124
|
|
|
121
125
|
static DEFAULT_PROPERTIES = {
|
|
126
|
+
detourProfile: null,
|
|
122
127
|
timeout: 5000,
|
|
123
128
|
parallelDownloads: 12
|
|
124
129
|
};
|