Deep copy the original style when highlighting an object

Fixes #3465
This commit is contained in:
Tom Hughes 2022-02-21 22:48:22 +00:00
parent a5508cfba1
commit 29d2f48214

View file

@ -124,7 +124,7 @@ OSM.initializeBrowse = function (map) {
}
// Redraw in selected style
layer.originalStyle = layer.options;
layer.originalStyle = { color: layer.options.color, weight: layer.options.weight };
layer.setStyle({ color: "#0000ff", weight: 8 });
OSM.router.route("/" + layer.feature.type + "/" + layer.feature.id);