Skip to content
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

How to update the Markers over time in the MapWidget? #122

Open
kingmaker-agm opened this issue Oct 4, 2024 · 1 comment
Open

How to update the Markers over time in the MapWidget? #122

kingmaker-agm opened this issue Oct 4, 2024 · 1 comment

Comments

@kingmaker-agm
Copy link

Question

How to update the Markers over time?
The getData(): array method returns different values at different time, But the Map Markers are not updated.

How can we literally update the Map markers?

Solutions Tried

  1. I tried to Polling using the property protected static ?string $pollingInterval = null; in the Widget.
  2. I tried to make the Widget interact with the Table data using the trait use InteractsWithPageTable;
  3. I tried to Fire an Event from the parent Resource and listen in the Widget using the annotation #[On('updateWidgetMapData')]
  4. I tried to call the following methods $this->updateMapData(); and $this->updatedFilter();
  5. Avoided the data caching by overriding protected function getCachedData(): array and randomizing Checksum value.
@kingmaker-agm
Copy link
Author

kingmaker-agm commented Oct 4, 2024

This Issue is similar to that of the previous Issue #105, But there wasn't any updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant