@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
|
@@ -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=
|
|
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 === '
|
|
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"
|
|
@@ -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.
|
|
218
|
-
lng: -0.
|
|
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 === '
|
|
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
|
};
|
|
@@ -138,7 +138,7 @@ export default class AddressAutocomplete extends Component {
|
|
|
138
138
|
return (
|
|
139
139
|
<>
|
|
140
140
|
<Script
|
|
141
|
-
url="https://
|
|
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
|
|
61
|
-
max-height
|
|
60
|
+
height 49.1rem!important
|
|
61
|
+
max-height 49.1rem!important
|
|
62
62
|
.demo__map
|
|
63
|
-
height
|
|
63
|
+
height 54rem
|
|
64
|
+
&--map
|
|
65
|
+
.demo__map
|
|
66
|
+
width 55rem
|
|
64
67
|
|
|
65
68
|
&__header
|
|
66
69
|
padding 0 $contentPadding
|