mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
refactor: separate map feature queries and source records
This commit is contained in:
1 parent
a8125ad917
commit
bf1d50f29b
28 files changed
+1128
-675
No files matched your search
@@ -82,13 +82,13 @@ function roads(bounds) {
|
||||
return {
|
||||
ok: true,
|
||||
json: async () => ({
|
||||
elements: [
|
||||
roads: [
|
||||
{
|
||||
type: 'way',
|
||||
tags: { highway: 'primary' },
|
||||
geometry: [
|
||||
{ lat: bounds.south, lon: bounds.west },
|
||||
{ lat: bounds.south + 0.005, lon: bounds.west + 0.005 },
|
||||
type: 'primary',
|
||||
oneway: 0,
|
||||
coordinates: [
|
||||
[bounds.west, bounds.south],
|
||||
[bounds.west + 0.005, bounds.south + 0.005],
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user