TeselaGen / tg-oss

Teselagen Open Source modules
https://teselagen.github.io/tg-oss/
MIT License
37 stars 18 forks source link

Error when right-clicking feature with editing enabled and parts disabled #58

Closed ryan-stackwave closed 5 months ago

ryan-stackwave commented 5 months ago

With editing enabled and parts disabled via updateEditor, an error is thrown if you right-click a feature.

editor.updateEditor({
    annotationsToSupport: {
        parts: false,
    }
});

https://jsfiddle.net/zah72dnm/3/

@tnrich

tnrich commented 5 months ago

@ryan-stackwave thank you for the js-fiddle but I can't seem to reproduce the error you're seeing:

image

That's what happens for me when I right-click the feature. Do you see something different?

ryan-stackwave commented 5 months ago

@tnrich in order to see the error you first have to click the lock to enable editing.

tnrich commented 5 months ago

@ryan-stackwave thanks, publishing a new version of ove now for ya! Good catch and a big thanks on making the fiddle!

ryan-stackwave commented 5 months ago

Great, thanks for tackling it so quickly @tnrich!