@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -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 === 'yellow') {
49
+ if (style === 'blue') {
50
50
  styleColor = `
51
- {featureType: "all", stylers:[{"hue": "#f3f736"}, {gamma:0.5}]},`;
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 === 'yellow'}
116
+ active={style === 'blue'}
117
117
  onClick={() => {
118
- this.setState({ style: 'yellow' }, this.displayMap);
118
+ this.setState({ style: 'blue' }, this.displayMap);
119
119
  }}
120
- label={tr('Yellow')}
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 === 'yellow') {
241
- return { featureType: 'all', stylers: [{ hue: '#f3f736' }, { gamma: 0.3 }] };
240
+ if (style === 'blue') {
241
+ return { featureType: 'all', stylers: [{ hue: '#4998ff' }, { gamma: 0.3 }] };
242
242
  }
243
243
  return null;
244
244
  };