You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, and thanks for the awesome work on this library! I'd like to use Split and Snap in a non-React app. So I'm porting your example code to VanillaJS (the ultimate goal is to get to AngularJS). I copied the code you provided in your examples and compiled in into basic CSS, HTML and JS. Snap is working fine, but Split is giving an error. Let me know if you have any idea what may be causing this issues. Thanks and let me know if you need more information! (As a side note, I successfully merged Snap and Split into a single React app based on the code you provided. The goal is to remove React completely.)
Split gives an error: "Uncaught Error: You must overwrite toDisplayFeatures".
The error occurs when executing the following code, either via the UI or in Console: draw.changeMode('splitLineMode', { spliter: mode });
Same error for mode as 'point', 'line_string', or 'polygon'.
I've tried loading different library versions for just about all the libraries. It seems like [email protected] and [email protected] are required.
The full error in Console: Uncaught Error: You must overwrite toDisplayFeatures
at q.toDisplayFeatures (mode_interface.js:145:9)
at Object.render (object_to_mode.js:69:14)
at Object.currentModeRender (events.js:214:26)
at a (render.js:37:22)
at render.js:32:28
at Array.forEach ()
at Q.K (render.js:32:14)
at store.js:27:16
Hi, and thanks for the awesome work on this library! I'd like to use Split and Snap in a non-React app. So I'm porting your example code to VanillaJS (the ultimate goal is to get to AngularJS). I copied the code you provided in your examples and compiled in into basic CSS, HTML and JS. Snap is working fine, but Split is giving an error. Let me know if you have any idea what may be causing this issues. Thanks and let me know if you need more information! (As a side note, I successfully merged Snap and Split into a single React app based on the code you provided. The goal is to remove React completely.)
Split gives an error: "Uncaught Error: You must overwrite toDisplayFeatures".
The error occurs when executing the following code, either via the UI or in Console:
draw.changeMode('splitLineMode', { spliter: mode });
Same error for mode as 'point', 'line_string', or 'polygon'.
I've tried loading different library versions for just about all the libraries. It seems like [email protected] and [email protected] are required.
I'm using the following libraries from CDN:
The full error in Console:
Uncaught Error: You must overwrite toDisplayFeatures
at q.toDisplayFeatures (mode_interface.js:145:9)
at Object.render (object_to_mode.js:69:14)
at Object.currentModeRender (events.js:214:26)
at a (render.js:37:22)
at render.js:32:28
at Array.forEach ()
at Q.K (render.js:32:14)
at store.js:27:16
Some more code, in case it is helpful:
The text was updated successfully, but these errors were encountered: