@woosmap/ui 3.97.0 → 3.98.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/package.json
CHANGED
|
@@ -86,45 +86,7 @@ export const woosmapBoundsFromViewport = function woosmapBoundsFromViewport(view
|
|
|
86
86
|
|
|
87
87
|
export const createWoosmapMap = (node) => {
|
|
88
88
|
try {
|
|
89
|
-
return new window.woosmap.map.Map(node
|
|
90
|
-
styles: [
|
|
91
|
-
{
|
|
92
|
-
featureType: 'administrative',
|
|
93
|
-
elementType: 'all',
|
|
94
|
-
stylers: [{ visibility: 'on' }, { saturation: -100 }, { lightness: 20 }],
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
featureType: 'road',
|
|
98
|
-
elementType: 'all',
|
|
99
|
-
stylers: [{ visibility: 'on' }, { saturation: -100 }, { lightness: 40 }],
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
featureType: 'water',
|
|
103
|
-
elementType: 'all',
|
|
104
|
-
stylers: [{ visibility: 'on' }, { saturation: -10 }, { lightness: 30 }],
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
featureType: 'landscape.man_made',
|
|
108
|
-
elementType: 'all',
|
|
109
|
-
stylers: [{ visibility: 'simplified' }, { saturation: -60 }, { lightness: 10 }],
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
featureType: 'landscape.natural',
|
|
113
|
-
elementType: 'all',
|
|
114
|
-
stylers: [{ visibility: 'simplified' }, { saturation: -60 }, { lightness: 60 }],
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
featureType: 'poi',
|
|
118
|
-
elementType: 'all',
|
|
119
|
-
stylers: [{ visibility: 'off' }, { saturation: -100 }, { lightness: 60 }],
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
featureType: 'transit',
|
|
123
|
-
elementType: 'all',
|
|
124
|
-
stylers: [{ visibility: 'off' }, { saturation: -100 }, { lightness: 60 }],
|
|
125
|
-
},
|
|
126
|
-
],
|
|
127
|
-
});
|
|
89
|
+
return new window.woosmap.map.Map(node);
|
|
128
90
|
} catch (e) {
|
|
129
91
|
console.error('Cound not instantiate a Map');
|
|
130
92
|
console.error(e);
|