Synched features disappear after route change
See original GitHub issueExample: https://codesandbox.io/s/vue-routing-example-h98xw?file=/components/Hello.vue
How to reproduce:
- Draw some features on map.
- Change route to some other page.
- Return to back to map.
Workaround: Replace string name "draw-target"
in ident
/ source
attrs with unique value, e.g. draw-target-${Date.now()}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Router breaks vuetify tabs - Stack Overflow
I have some vuetify tabs that work as expected before I add routes. I want the route to change when the active tab...
Read more >Error handling with sync—ArcGIS REST APIs
This topic discusses error cases when using the feature service's createReplica ... Object is missing or edit denied due to ownership-based access control....
Read more >Reply Here If You Have Missing Activities - Activity/Sync Issues
Garmin recently changed their API in a way that breaks re-syncing activities. They only allow activities to be requested once. When you first ......
Read more >Change the map view in CarPlay - Apple Support
To see the route overview in 2D with north at the top of the screen, select the Overview ... You can also change...
Read more >Garmin Launches Strava & Komoot Route Sync - DC Rainmaker
Here's how to link up your Garmin account to Komoot and Strava for automatic route/tours sync to your Garmin device - even crazy...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bejohu thanks for examples. Now I see, it seems a bug with identity map usage between vl-interaction-draw and vl-source-vector. I need sometime to understand how to fix this. You workaround is a good compromise 👍
@ghettovoice Exactly! Any newly drawn features survive the route change, but the initial features disappear.
Please check out the new / better example.
The steps to reproduce are:
data() {}
should be visible on the map.Result: The initial features are not shown anymore.
Here is the example:
https://bprq9.csb.app/hello (https://codesandbox.io/s/vue-routing-example-bprq9?file=/components/Hello.vue)
This is the version applying the workaround:
https://r4eki.csb.app/ (https://codesandbox.io/s/vue-routing-example-r4eki?file=/components/Hello.vue)