@woosmap/ui 2.1.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.1.0",
3
+ "version": "2.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -220,7 +220,7 @@ export default class AddressDemo extends Component {
220
220
  key="addressAutocomplete"
221
221
  ref={this.addressAutocompleteRef}
222
222
  apiOrder={['address']}
223
- woosmapKey="woos-a362a591-c371-3bff-b193-c7344431a1f0"
223
+ woosmapKey={Constants.woosmapKey}
224
224
  placeholder="Start to type in an address"
225
225
  defaultLocality={this.defaultOrigin}
226
226
  language={language}
@@ -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"
@@ -214,8 +214,8 @@ storesOverlay.setMap(map);
214
214
  this.map = new window.woosmap.map.Map(this.mapDivRef.current, {
215
215
  styles,
216
216
  center: {
217
- lat: 51.52,
218
- lng: -0.13,
217
+ lat: 51.51,
218
+ lng: -0.12,
219
219
  },
220
220
  zoom: 14,
221
221
  });
@@ -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
  };
@@ -138,7 +138,7 @@ export default class AddressAutocomplete extends Component {
138
138
  return (
139
139
  <>
140
140
  <Script
141
- url="https://develop-sdk.woosmap.com/multisearch/pr/address_details/multisearch.js"
141
+ url="https://sdk.woosmap.com/multisearch/multisearch.js"
142
142
  onLoad={this.multisearchScriptLoaded}
143
143
  onError={this.multisearchScriptError}
144
144
  />
@@ -57,10 +57,13 @@ $mapHeight = 36rem
57
57
  position relative
58
58
  padding 1.6rem 2.6rem 3rem 2.6rem
59
59
  .tab__content
60
- height 54.1rem
61
- max-height 54.1rem
60
+ height 49.1rem!important
61
+ max-height 49.1rem!important
62
62
  .demo__map
63
- height 59.5rem
63
+ height 54rem
64
+ &--map
65
+ .demo__map
66
+ width 55rem
64
67
 
65
68
  &__header
66
69
  padding 0 $contentPadding