Generating PMTiles for MapWithAI JOSM plugin using tippecanoe

Thanks a lot for looking into it! I’m happy to compile and test development versions if you want.

I imagine that tiles for editable objects need to be treated a bit different than tiles for map display. One would always want the highest available resolution. Lower zoom levels can contain fewer features, simplified geometries and rounded coordinates. On the other hand you don’t want to overload the client.

Maybe one approach could be to select which tiles to load starting from the center of the current map view going outside to the borders of the map. Since one needs to calculate which range requests to make anyway, one knows how much data will be loaded before making the actual request. Maybe setting an upper limit of how much data to load makes sense and then loading loading tiles up to the limit.