sr-npm 1.7.221 → 1.7.223
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/pages/careersPage.js +13 -12
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -144,6 +144,7 @@ async function handlePageParam(_$w) {
|
|
|
144
144
|
async function bind(_$w) {
|
|
145
145
|
await _$w('#jobsDataset').onReady(async () => {
|
|
146
146
|
await updateCount(_$w);
|
|
147
|
+
await updateMapMarkers(_$w);
|
|
147
148
|
|
|
148
149
|
});
|
|
149
150
|
|
|
@@ -344,7 +345,7 @@ async function handleLocationParam(_$w,location) {
|
|
|
344
345
|
|
|
345
346
|
async function updateMapMarkers(_$w){
|
|
346
347
|
const numOfItems = await _$w('#jobsDataset').getTotalCount();
|
|
347
|
-
|
|
348
|
+
// if(numOfItems>0){
|
|
348
349
|
const items = await _$w('#jobsDataset').getItems(0, numOfItems);
|
|
349
350
|
const markers = items.items.map(item => {
|
|
350
351
|
const location = item.locationAddress.location;
|
|
@@ -361,17 +362,17 @@ async function updateMapMarkers(_$w){
|
|
|
361
362
|
console.log("type of markers: ", typeof markers);
|
|
362
363
|
//@ts-ignore
|
|
363
364
|
_$w('#googleMaps').setMarkers(markers);
|
|
364
|
-
}
|
|
365
|
-
else{
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}
|
|
365
|
+
//}
|
|
366
|
+
// else{
|
|
367
|
+
// console.log("no positions found");
|
|
368
|
+
// _$w('#googleMaps').setMarkers([{
|
|
369
|
+
// location: {
|
|
370
|
+
// latitude: 0,
|
|
371
|
+
// longitude: 0
|
|
372
|
+
// },
|
|
373
|
+
// address: "No positions found",
|
|
374
|
+
// }]);
|
|
375
|
+
// }
|
|
375
376
|
}
|
|
376
377
|
|
|
377
378
|
|