mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 00:07:03 +02:00
Redraw measurement and history panels on context mode enter
- these panel content were redrawn whenever the map was redrawn, however the map does not necessarily redraw when selecting notes
This commit is contained in:
@@ -227,11 +227,16 @@ export function uiPanelHistory(context) {
|
||||
.on('drawn.info-history', function() {
|
||||
selection.call(redraw);
|
||||
});
|
||||
|
||||
context
|
||||
.on('enter.info-history', function() {
|
||||
selection.call(redraw);
|
||||
});
|
||||
};
|
||||
|
||||
panel.off = function() {
|
||||
context.map()
|
||||
.on('drawn.info-history', null);
|
||||
context.map().on('drawn.info-history', null);
|
||||
context.on('enter.info-history', null);
|
||||
};
|
||||
|
||||
panel.id = 'history';
|
||||
|
||||
@@ -193,11 +193,16 @@ export function uiPanelMeasurement(context) {
|
||||
.on('drawn.info-measurement', function() {
|
||||
selection.call(redraw);
|
||||
});
|
||||
|
||||
context
|
||||
.on('enter.info-measurement', function() {
|
||||
selection.call(redraw);
|
||||
});
|
||||
};
|
||||
|
||||
panel.off = function() {
|
||||
context.map()
|
||||
.on('drawn.info-measurement', null);
|
||||
context.map().on('drawn.info-measurement', null);
|
||||
context.on('enter.info-measurement', null);
|
||||
};
|
||||
|
||||
panel.id = 'measurement';
|
||||
|
||||
Reference in New Issue
Block a user