Fix for Point Tutorial (#10129)

This commit is contained in:
Mattia Pezzotti
2024-03-07 23:38:51 +01:00
committed by GitHub
parent 0048c3186d
commit a75eace135
2 changed files with 15 additions and 1 deletions
+14 -1
View File
@@ -87,7 +87,20 @@ export function uiIntroPoint(context, reveal) {
context.on('enter.intro', function(mode) {
if (mode.id !== 'select') return chapter.restart();
_pointID = context.mode().selectedIDs()[0];
continueTo(searchPreset);
if (context.graph().geometry(_pointID) === 'vertex'){
//disallow all
context.map().on('move.intro drawn.intro', null);
context.on('enter.intro', null);
reveal(pointBox, helpHtml('intro.points.place_point_error'), {
buttonText: t.html('intro.ok'),
buttonCallback: function() { return chapter.restart(); }
});
} else {
continueTo(searchPreset);
}
});
function continueTo(nextStep) {