-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: the path_changed event does not work on the GvmPolygon component #318
Comments
I’ll also add that the geoposition of GvmMarker on the map does not change when the data in the reactive variable responsible for the geoposition of the marker in my vue component changes. Initially, the marker appears on the map at the coordinates specified in the variable, but does not change when the variable data is changed. |
…nd cause errors with watchers and events * test(v3): update cypress runner to use typescript * chore(v3): add space between lines * refactor(v3): improve function recycling code * fix(v3): add autocomplete-key and promise deferred pattern to autocomplete component * test(v3): add autocomplete component test * refactor(v3): fix typo on autocomplete word * chore(v3): remove unnecessary console log * chore(v3): update autocomplete slot comment * test(v3): add autocomplete and map component tests * test(v3): add marker component test We also improved the map and autocomplete component tests * test(v3): add circle component test We also improved other tests adding unmounted tests * test(v3): add cluster icon component test We also improve the circle shape component tests. * test(v3): add component test for drawing-manager We also improved mocks on other component tests * chore(root): add launch config to debug current test with vite * test(v3): add component test for heatmap layer * test(v3): add component test for info-window component * test(v3): add component test for kml-layer component * test(v3): add component test for polygon-shape component * test(v3): add component test for polyline-shape component * test(v3): add component test for street-view-panorama component * test(v3): add tests for main.ts module * fix(v3): remove exposed instances because they are always undefined * test(v3): fix marker e2e tests after the last changes * fix(v3): remove undefined instances and fix watchers Solve: #318 #319 * test(v3): add component unit tests and fix e2e tests Solve: #320 * chore(v3): add new script to build for development * chore(root): update lock file * refactor(v3): move component promises into a factory function. * chore(root): upgrade node version on gh actions and update lock file * chore(root): update lock file to pnpm version 9 * chore(root): update package-manager property on the root package
Hello @Tuhtarov, first of all, thank you for reporting this issue. I fixed the issues in the new version that was landed a few minutes ago. Please test it and let me know if something else happens. |
Hi @diegoazh. It worked after adding the polygon-key attribute. |
Describe the bug
The path_changed event does not work on the GvmPolygon component after changing the coordinates of any point or after adding a new point. At the same time, the polygon itself on the map changes.
To reproduce
To verify this, just repeat the code of this autotest and add console.log to the beginning of the updateEdited function:
https://github.com/diegoazh/gmap-vue/blob/master/packages/v3/cypress/runner/components/PolygonTest.vue
Expected behavior
The array of polygon coordinates in the reactive variable should change.
Screenshots
The polygon itself has changed, but the data in the reactive variable has not changed
Desktop
Versions
Package manager
Plugin version
The text was updated successfully, but these errors were encountered: