mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Force a redraw after adding a note
Because notes dont exist in the history or graph, there is no history change event to trigger a redraw, as there would be when adding points and other things.
This commit is contained in:
@@ -29,6 +29,9 @@ export function modeAddNote(context) {
|
|||||||
var note = osmNote({ loc: loc, status: 'open', comments: [] });
|
var note = osmNote({ loc: loc, status: 'open', comments: [] });
|
||||||
osm.replaceNote(note);
|
osm.replaceNote(note);
|
||||||
|
|
||||||
|
// force a reraw (there is no history change that would otherwise do this)
|
||||||
|
context.pan([0,0]);
|
||||||
|
|
||||||
context
|
context
|
||||||
.selectedNoteID(note.id)
|
.selectedNoteID(note.id)
|
||||||
.enter(modeSelectNote(context, note.id).newFeature(true));
|
.enter(modeSelectNote(context, note.id).newFeature(true));
|
||||||
|
|||||||
Reference in New Issue
Block a user