@woosmap/ui 2.4.0 → 2.5.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
|
@@ -46,9 +46,9 @@ export default class MapDemo extends Component {
|
|
|
46
46
|
styleColor = `
|
|
47
47
|
{featureType: "all", stylers:[{"saturation": -100}]},`;
|
|
48
48
|
}
|
|
49
|
-
if (style === '
|
|
49
|
+
if (style === 'blue') {
|
|
50
50
|
styleColor = `
|
|
51
|
-
{featureType: "all", stylers:[{"hue": "#
|
|
51
|
+
{featureType: "all", stylers:[{"hue": "#4998ff"}, {gamma:0.5}]},`;
|
|
52
52
|
}
|
|
53
53
|
const styleConf = `[${styleColor}
|
|
54
54
|
{featureType: "poi", stylers:[{"visibility":"${hasPois ? 'on' : 'off'}"}]}
|
|
@@ -113,11 +113,11 @@ storesOverlay.setMap(map);
|
|
|
113
113
|
/>
|
|
114
114
|
<Button
|
|
115
115
|
type="group"
|
|
116
|
-
active={style === '
|
|
116
|
+
active={style === 'blue'}
|
|
117
117
|
onClick={() => {
|
|
118
|
-
this.setState({ style: '
|
|
118
|
+
this.setState({ style: 'blue' }, this.displayMap);
|
|
119
119
|
}}
|
|
120
|
-
label={tr('
|
|
120
|
+
label={tr('Blue')}
|
|
121
121
|
/>
|
|
122
122
|
<Button
|
|
123
123
|
type="group"
|
|
@@ -237,8 +237,8 @@ storesOverlay.setMap(map);
|
|
|
237
237
|
if (style === 'lightgrey') {
|
|
238
238
|
return { featureType: 'all', stylers: [{ saturation: -100 }] };
|
|
239
239
|
}
|
|
240
|
-
if (style === '
|
|
241
|
-
return { featureType: 'all', stylers: [{ hue: '#
|
|
240
|
+
if (style === 'blue') {
|
|
241
|
+
return { featureType: 'all', stylers: [{ hue: '#4998ff' }, { gamma: 0.3 }] };
|
|
242
242
|
}
|
|
243
243
|
return null;
|
|
244
244
|
};
|