Modify

Opened 3 weeks ago

Closed 3 weeks ago

Last modified 3 weeks ago

#24600 closed enhancement (fixed)

[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 3 weeks ago.

Download all attachments as: .zip

Change History (3)

by AmyWorrall, 3 weeks ago

comment:1 by stoecker, 3 weeks ago

Resolution: fixed
Status: newclosed

In 36468/osm:

fix #24600 - add session support for pmtiles

comment:2 by stoecker, 3 weeks ago

In 36469/osm:

fix #24600 - add session support for pmtiles (dist)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain taylor.smock.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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