Modify

Opened 17 hours ago

#24600 new enhancement

[PATCH] Add session support to pmtiles plugin

Reported by: AmyWorrall Owned by: taylor.smock
Priority: normal Milestone:
Component: Plugin pmtiles Version:
Keywords: patch Cc:

Description

Suggested description:

This patch adds session save/load support for PMTiles image layers.


Problem

Currently, PMTiles layers are not included when saving a JOSM session (.jos/.joz).
Users have to manually re-add their PMTiles files each time they open a session.


Solution

Added SessionLayerExporter and SessionLayerImporter implementations for PMTilesImageLayer:

  • PMTilesImageSessionExporter: Saves the file URI and layer name to session XML
  • PMTilesImageSessionImporter: Restores the layer from session XML


Testing

Tested on macOS with a local PMTiles file:

  1. Open a .pmtiles file
  2. Save session
  3. Close JOSM and re-open
  4. Load session
  5. PMTiles layer is restored correctly

Attachments (1)

pmtiles-session-support.patch (8.3 KB ) - added by AmyWorrall 17 hours ago.

Download all attachments as: .zip

Change History (1)

by AmyWorrall, 17 hours ago

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain taylor.smock.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from taylor.smock to the specified user.
Next status will be 'needinfo'. The owner will be changed from taylor.smock to AmyWorrall.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from taylor.smock to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.