question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Synched features disappear after route change

See original GitHub issue

Example: https://codesandbox.io/s/vue-routing-example-h98xw?file=/components/Hello.vue

How to reproduce:

  1. Draw some features on map.
  2. Change route to some other page.
  3. 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghettovoicecommented, Jul 6, 2020

@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 👍

0reactions
bejohucommented, Jul 5, 2020

@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:

  1. Make sure you refresh the page / open the link again in incognito mode. 10 static features defined in data() {} should be visible on the map.
  2. Now draw one or more new feature on the map in addition to the existing 10.
  3. Route to the other page.
  4. Go back to 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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found