feat: update map data (#684)
This commit is contained in:
+51739
-7115
File diff suppressed because it is too large
Load Diff
@@ -18,7 +18,9 @@ async function getData(url) {
|
||||
function processData(data) {
|
||||
const db = new Map()
|
||||
data.nodes.forEach(node => {
|
||||
db.set(node.overlay, { lat: node.location.latitude, lng: node.location.longitude })
|
||||
if (node.location) {
|
||||
db.set(node.overlay, { lat: node.location.latitude, lng: node.location.longitude })
|
||||
}
|
||||
})
|
||||
|
||||
return Object.fromEntries([...db.entries()].sort())
|
||||
|
||||
Reference in New Issue
Block a user