Re:Anatomy of a MapServer: how to leverage and visualize you...
by Helmut10001 on Sunday March 17, 2024 @12:31AM
(#39731948)
Wow, thanks! I checked and PMTiles is even supported in Maplibre. [1]
This can probably replace 30% of online maps with static sources.
[1]: https://maplibre.org/maplibre-gl-js/docs/examples/pmtiles/
Re:Anatomy of a MapServer: how to leverage and visualize you...
by stevage on Sunday March 17, 2024 @04:08PM
(#39737593)
The problem I found with pmtiles is not many servers support the required HTTP attributes. You need to carefully assess ahead of time.
Re:Anatomy of a MapServer: how to leverage and visualize you...
by cyanydeez on Sunday March 17, 2024 @07:17PM
(#39738945)
I believe it's only range requests you need supported. there's also cool sqlite querying and flatgeobufs that can do fancy lookups on large single file formats
Re:Anatomy of a MapServer: how to leverage and visualize you...
by stevage on Monday March 18, 2024 @03:10AM
(#39741122)
Yeah. I don't know exactly how widely supported range requests are - my first few attempts turned up a few duds.
Re:Anatomy of a MapServer: how to leverage and visualize you...
by beeboobaa on Sunday March 17, 2024 @12:42AM
(#39731987)
PMTiles is great for a static background. You can easily do a layer on top with geojson like you say, or even just by storing your own data in postgres and using postgis ST_AsMVT to turn it into a vector tile layer. Stick a cachebuster in the URL & a http cache in front and you can call it a day.
Re:Anatomy of a MapServer: how to leverage and visualize you...
by alleycat5000 on Sunday March 17, 2024 @01:25AM
(#39732132)
You can use pmtiles through mapserver via GDAL!
Re:Anatomy of a MapServer: how to leverage and visualize you...
by tomtomistaken on Sunday March 17, 2024 @05:34AM
(#39733099)
I'm working on a map project [1] (which is a proof of concept) where you can add posts and stories by sharing the map URL on social media (mastodon.social only at the moment, we used to have a twitter listener as well). The state of the map is encoded in the URL and is added as a post when the listener catches the URL in the stream.
So far you can draw shapes and unofficially add geojsons to the map. I am very excited adding the ability to link custom PMTiles in the future!
But, in my admittedly simple application PMTiles can cover a lot of my visualization use cases with a thin Django app doing GEOJson for interactive layers.
https://github.com/protomaps/PMTiles