earthsci icon indicating copy to clipboard operation
earthsci copied to clipboard

Fix bookmark import to work with new layer persistence

Open mdehoog opened this issue 12 years ago • 0 comments

When importing bookmarks on one computer from a bookmarks XML file exported on another computer, the layer ids will not match.

The bookmark layer implementation needs to be updated to use the new layer persistence mechanism (which no longer uses a URI for unique layer identification and creation), so that layers can be re-created when a bookmark is applied.

Perhaps, when applying a bookmark that has a layer with an id that isn't in the layer model, some kind of hash (eg MD5) of the persisted layer XML can be generated for each layer in the layer model and the bookmark, and the bookmark layers can be matched up that way.

mdehoog avatar Nov 19 '13 21:11 mdehoog