@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.
@@ -2653,7 +2653,7 @@ function buildMapStyles() {
2653
2653
  }
2654
2654
  function styleToStyle(style) {
2655
2655
  if (!style) {
2656
- return MapStyle[mapStylePresetList[0].referenceStyleID].getDefaultVariant().getId();
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;