@maptiler/client 3.2.0-rc.4 → 3.3.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/dist/maptiler-client.cjs +3 -1
- package/dist/maptiler-client.cjs.map +1 -1
- package/dist/maptiler-client.d.ts +9 -3
- package/dist/maptiler-client.min.mjs +1 -1
- package/dist/maptiler-client.mjs +3 -2
- package/dist/maptiler-client.mjs.map +1 -1
- package/package.json +1 -1
- package/readme.md +292 -85
package/dist/maptiler-client.cjs
CHANGED
|
@@ -2653,7 +2653,7 @@ function buildMapStyles() {
|
|
|
2653
2653
|
}
|
|
2654
2654
|
function styleToStyle(style) {
|
|
2655
2655
|
if (!style) {
|
|
2656
|
-
return
|
|
2656
|
+
return defaultMapStyle.getDefaultVariant().getId();
|
|
2657
2657
|
}
|
|
2658
2658
|
if (typeof style === "string" || style instanceof String) {
|
|
2659
2659
|
return style.trim().toLowerCase();
|
|
@@ -2666,6 +2666,7 @@ function styleToStyle(style) {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
}
|
|
2668
2668
|
const MapStyle = buildMapStyles();
|
|
2669
|
+
const defaultMapStyle = MapStyle.STREETS;
|
|
2669
2670
|
|
|
2670
2671
|
function extractLineStrings(geoJson) {
|
|
2671
2672
|
const lineStrings = [];
|
|
@@ -3584,6 +3585,7 @@ exports.circumferenceAtLatitude = circumferenceAtLatitude;
|
|
|
3584
3585
|
exports.config = config;
|
|
3585
3586
|
exports.coordinates = coordinates;
|
|
3586
3587
|
exports.data = data;
|
|
3588
|
+
exports.defaultMapStyle = defaultMapStyle;
|
|
3587
3589
|
exports.defaultReferenceStyleMap = defaultReferenceStyleMap;
|
|
3588
3590
|
exports.elevation = elevation;
|
|
3589
3591
|
exports.expandMapStyle = expandMapStyle;
|