iandees / josm-mbtiles

A JOSM plugin that shows mbtiles files as a background layer.
Apache License 2.0
11 stars 4 forks source link

support pmtiles #22

Open RobJN opened 1 year ago

RobJN commented 1 year ago

See: https://protomaps.com/docs/pmtiles

Adding support would be useful for those who'd like to adopt the new format for the reasons explained on their site.

Thanks for considering this request. Rob

iandees commented 1 year ago

That's a good idea. I wonder if @bdon would have any interest in writing it?

bdon commented 1 year ago

It has some overlap with https://github.com/onthegomap/planetiler/issues/98 which may eventually get extracted into a standalone Java package. Some parts of JOSM package that may be relevant are:

tsmock commented 1 year ago

As a heads up, I'm writing a plugin for PMTiles support right now. I'm just about done too. It will live in the JOSM SVN repository.

bdon commented 1 year ago

@tsmock cool! most of the Java related code for pmtiles right now lives here: https://github.com/onthegomap/planetiler/blob/main/planetiler-core/src/main/java/com/onthegomap/planetiler/pmtiles/

tsmock commented 1 year ago

I already wrote the reading implementation. And debugged it.

Have a screenshot (you probably recognize it -- I was testing against the test files in the specification directory):

image