@woosmap/ui 2.63.0 → 2.64.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 +1 -1
- package/src/components/Demo/DistanceDemo.js +5 -1
- package/src/components/Demo/GeolocationDemo.js +2 -1
- package/src/components/Demo/LocalitiesAddressDemo.js +2 -1
- package/src/components/Demo/LocalitiesDemo.js +2 -1
- package/src/components/Demo/MapDemo.js +1 -1
- package/src/components/Demo/SearchDemo.js +3 -2
- package/src/styles/console/colors.styl +37 -0
package/package.json
CHANGED
|
@@ -210,6 +210,7 @@ export default class DistanceDemo extends Component {
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
if (window.woosmap && window.woosmap.map && this.demoRef.current) {
|
|
213
|
+
window.woosmap.map.config.setApiKey(Constants.woosmapKey);
|
|
213
214
|
this.map = createWoosmapMap(this.demoRef.current.getMap());
|
|
214
215
|
this.requestDistance();
|
|
215
216
|
} else {
|
|
@@ -218,6 +219,9 @@ export default class DistanceDemo extends Component {
|
|
|
218
219
|
};
|
|
219
220
|
|
|
220
221
|
localitiesOnChangeCallBack = (type) => (item) => {
|
|
222
|
+
if (!item) {
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
221
225
|
const newState = {};
|
|
222
226
|
newState[`${type}Location`] = item ? item.location : {};
|
|
223
227
|
this.setState(newState, this.requestDistance);
|
|
@@ -345,7 +349,7 @@ export default class DistanceDemo extends Component {
|
|
|
345
349
|
};
|
|
346
350
|
return (
|
|
347
351
|
<>
|
|
348
|
-
<Script url=
|
|
352
|
+
<Script url="https://sdk.woosmap.com/map/map.js" />
|
|
349
353
|
<Demo
|
|
350
354
|
id="distance-demo"
|
|
351
355
|
className="demo--distance"
|
|
@@ -179,6 +179,7 @@ export default class GeolocationDemo extends Component {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
if (window.woosmap && window.woosmap.map && this.demoRef.current) {
|
|
182
|
+
window.woosmap.map.config.setApiKey(Constants.geolocationWoosmapSearchKey);
|
|
182
183
|
this.map = createWoosmapMap(this.demoRef.current.getMap());
|
|
183
184
|
this.requestGeolocation();
|
|
184
185
|
} else {
|
|
@@ -210,7 +211,7 @@ export default class GeolocationDemo extends Component {
|
|
|
210
211
|
}
|
|
211
212
|
return (
|
|
212
213
|
<>
|
|
213
|
-
<Script url=
|
|
214
|
+
<Script url="https://sdk.woosmap.com/map/map.js" />
|
|
214
215
|
<Demo
|
|
215
216
|
className="demo--geolocation"
|
|
216
217
|
docLink="https://developers.woosmap.com/products/geolocation-api/location/"
|
|
@@ -327,6 +327,7 @@ export default class LocalitiesAddressDemo extends Component {
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
if (window.woosmap && window.woosmap.map && this.demoRef.current) {
|
|
330
|
+
window.woosmap.map.config.setApiKey(Constants.woosmapKey);
|
|
330
331
|
this.map = createWoosmapMap(this.demoRef.current.getMap());
|
|
331
332
|
this.requestAddress();
|
|
332
333
|
} else {
|
|
@@ -343,7 +344,7 @@ export default class LocalitiesAddressDemo extends Component {
|
|
|
343
344
|
}
|
|
344
345
|
return (
|
|
345
346
|
<>
|
|
346
|
-
<Script url=
|
|
347
|
+
<Script url="https://sdk.woosmap.com/map/map.js" />
|
|
347
348
|
<Demo
|
|
348
349
|
noheader={noheader}
|
|
349
350
|
header={headerLabels}
|
|
@@ -195,6 +195,7 @@ export default class LocalitiesDemo extends Component {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
if (window.woosmap && window.woosmap.map && this.demoRef.current) {
|
|
198
|
+
window.woosmap.map.config.setApiKey(Constants.woosmapKey);
|
|
198
199
|
this.map = createWoosmapMap(this.demoRef.current.getMap());
|
|
199
200
|
this.requestLocalities();
|
|
200
201
|
} else {
|
|
@@ -270,7 +271,7 @@ export default class LocalitiesDemo extends Component {
|
|
|
270
271
|
const { noheader, headerLabels, subHeader } = this.props;
|
|
271
272
|
return (
|
|
272
273
|
<>
|
|
273
|
-
<Script url=
|
|
274
|
+
<Script url="https://sdk.woosmap.com/map/map.js" />
|
|
274
275
|
<Demo
|
|
275
276
|
id="localities-demo"
|
|
276
277
|
header={headerLabels}
|
|
@@ -251,7 +251,7 @@ storesOverlay.setMap(map);
|
|
|
251
251
|
};
|
|
252
252
|
return (
|
|
253
253
|
<>
|
|
254
|
-
<Script url=
|
|
254
|
+
<Script url="https://sdk.woosmap.com/map/map.js" />
|
|
255
255
|
<Demo
|
|
256
256
|
ref={this.demoRef}
|
|
257
257
|
header={headerLabels}
|
|
@@ -73,7 +73,7 @@ export default class SearchDemo extends Component {
|
|
|
73
73
|
key: Constants.woosmapKey,
|
|
74
74
|
lat: location.lat,
|
|
75
75
|
lng: location.lng,
|
|
76
|
-
stores_by_page: maxStore,
|
|
76
|
+
stores_by_page: maxStore || '5',
|
|
77
77
|
query,
|
|
78
78
|
};
|
|
79
79
|
};
|
|
@@ -190,6 +190,7 @@ export default class SearchDemo extends Component {
|
|
|
190
190
|
if (this.timeoutMap) clearTimeout(this.timeoutMap);
|
|
191
191
|
|
|
192
192
|
if (window.woosmap && window.woosmap.map && this.demoRef.current) {
|
|
193
|
+
window.woosmap.map.config.setApiKey(Constants.woosmapKey);
|
|
193
194
|
this.map = createWoosmapMap(this.demoRef.current.getMap());
|
|
194
195
|
this.requestSearch();
|
|
195
196
|
} else {
|
|
@@ -310,7 +311,7 @@ export default class SearchDemo extends Component {
|
|
|
310
311
|
};
|
|
311
312
|
return (
|
|
312
313
|
<>
|
|
313
|
-
<Script url=
|
|
314
|
+
<Script url="https://sdk.woosmap.com/map/map.js" />
|
|
314
315
|
<Demo
|
|
315
316
|
id="search-demo"
|
|
316
317
|
className="demo--search"
|
|
@@ -303,3 +303,40 @@ $merchant10 = rgba(120, 144, 156, .1)
|
|
|
303
303
|
$trafficDark = rgba(2165, 46, 111, 1)// #D82E6F
|
|
304
304
|
$traffic = rgba(255, 124, 129, 1) // #ff7c81
|
|
305
305
|
$traffic10 = rgba(255, 124, 129, .1)
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
// Products
|
|
309
|
+
|
|
310
|
+
$stores = #388aff
|
|
311
|
+
$stores10 = rgba($stores, .1)
|
|
312
|
+
$storesDark = #0D63DD
|
|
313
|
+
|
|
314
|
+
$localities = #009DFF
|
|
315
|
+
$localities10 = rgba($localities, .1)
|
|
316
|
+
$localitiesDark = #0085D8
|
|
317
|
+
|
|
318
|
+
$geolocation = #506BDE
|
|
319
|
+
$geolocation10 = rgba($geolocation, .1)
|
|
320
|
+
$geolocationDark = #1F40CC
|
|
321
|
+
|
|
322
|
+
$address = #4AC6F2
|
|
323
|
+
$address10 = rgba($address, .1)
|
|
324
|
+
$addressDark = #0D9ED1
|
|
325
|
+
|
|
326
|
+
$distance = #FF8A65
|
|
327
|
+
$distance10 = rgba($distance, .1)
|
|
328
|
+
$distanceDark = #E06138
|
|
329
|
+
|
|
330
|
+
$traffic = #FF6565
|
|
331
|
+
$traffic10 = rgba($traffic, .1)
|
|
332
|
+
$trafficDark = #E04B4B
|
|
333
|
+
|
|
334
|
+
$map = #A1887F
|
|
335
|
+
$map10 = rgba($map, .1)
|
|
336
|
+
$mapDark = #906455
|
|
337
|
+
|
|
338
|
+
$merchant = #08A278
|
|
339
|
+
$merchant10 = rgba($merchant, .1)
|
|
340
|
+
$merchantDark = #008863
|
|
341
|
+
|
|
342
|
+
|