@vtx/map 1.1.31 → 1.1.33
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/lib/VtxMap/TMap/TMap.js
CHANGED
|
@@ -3125,17 +3125,30 @@ var TMap = /*#__PURE__*/function (_React$Component) {
|
|
|
3125
3125
|
;
|
|
3126
3126
|
} else {
|
|
3127
3127
|
var list = result.pois.map(function (r) {
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3128
|
+
var lnglat = {};
|
|
3129
|
+
|
|
3130
|
+
if (r.lonlat.indexOf(",") > -1) {
|
|
3131
|
+
lnglat = {
|
|
3132
|
+
longitude: r.lonlat.split(',')[0],
|
|
3133
|
+
latitude: r.lonlat.split(',')[1]
|
|
3134
|
+
};
|
|
3135
|
+
} else {
|
|
3136
|
+
lnglat = {
|
|
3137
|
+
longitude: r.lonlat.split(' ')[0],
|
|
3138
|
+
latitude: r.lonlat.split(' ')[1]
|
|
3139
|
+
};
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
return _objectSpread(_objectSpread({
|
|
3143
|
+
id: r.hotPointID
|
|
3144
|
+
}, lnglat), {}, {
|
|
3132
3145
|
canShowLabel: true,
|
|
3133
3146
|
config: {
|
|
3134
3147
|
labelContent: r.name,
|
|
3135
3148
|
labelPixelY: 27
|
|
3136
3149
|
},
|
|
3137
3150
|
other: 'search'
|
|
3138
|
-
};
|
|
3151
|
+
});
|
|
3139
3152
|
});
|
|
3140
3153
|
resolve(list);
|
|
3141
3154
|
}
|