Terence Eden on Nostr: I think I need some #geospatial help. I have a #GeoJSON file which is ~10MB. Even ...
I think I need some #geospatial help.
I have a #GeoJSON file which is ~10MB. Even when compressed it is about 2MB.
It provides a cluster of ~28k points displayed on a #Leaflet map.
Is there a sensible way to make this more efficient? Can I start will a small GeoJSON of just the clusters and then "stream" in more detailed files when users zoom in?
Published at
2023-07-17 20:42:34Event JSON
{
"id": "268c5f633992333f643e6f7f4bd7a6c22bfff114b4230feef94817150d52b07c",
"pubkey": "fddf487eea9db57a6e320f80e5cb63de50bedf539695a41c0d447be6c23643e1",
"created_at": 1689626554,
"kind": 1,
"tags": [
[
"t",
"geospatial"
],
[
"t",
"geojson"
],
[
"t",
"leaflet"
],
[
"mostr",
"https://mastodon.social/users/Edent/statuses/110731365860213978"
]
],
"content": "I think I need some #geospatial help.\n\nI have a #GeoJSON file which is ~10MB. Even when compressed it is about 2MB.\n\nIt provides a cluster of ~28k points displayed on a #Leaflet map.\n\nIs there a sensible way to make this more efficient? Can I start will a small GeoJSON of just the clusters and then \"stream\" in more detailed files when users zoom in?\n\nhttps://files.mastodon.social/media_attachments/files/110/731/353/410/437/112/original/432c0e3df7ad7b12.png",
"sig": "7c5644218cbc38513a0314bc7be10c4a5d3a77d5f7ccac300c1b1f21febab50446ecc6e09f3c9eaeaa112557928a137cec4c9bb08b1109ec7198d27474306b34"
}