Services Plugins FAQs

Mapbox - Live Realtime Tracking

Hello,

I’m using the Mapbox plugin to sucessfully display multiple vehicle locations on a map which works really well.

What I’d like to happen though is for markers to appear and disappear subject to the conditions set for the thing being tracked on ther map in ‘do a search for’ in the element’s live tracking data field.

I can add markers as the condition becomes true by calling “Add live real time data” every 5 seconds but this doesn’t remove markers that are no longer valid and the “Remove live realtime data” doesn’t seem to do anything in any usecase.

Can you offer any help please?

Jack

Hello @J4CKG,

Thanks for reaching out.

We tested the things you mentioned regarding the “Remove live realtime data” action in the plugin. It appears there might indeed be a problem with updating data in general.

We’ve forwarded this to our development team for further investigation and a resolution. And I’ll let you know as soon as we have more information on their end.

If you have any other questions in the meantime, please let us know.

Thank you again and have a great day!

Best regards,
Stefan

Hi Stephan,

Thanks for coming back to me. A good thing and a bad thing to hear there’s something wrong but at least it means I may not have been missing anything and the issue could be fixed.

Looking forward to an update. Had great success with the rest of the plugin. Thanks

1 Like

Hello @J4CKG,

Hope this message finds you well.

I’m excited to share an update following our last conversation about the “remove realtime data” action in the Mapbox Maps plugin. In the latest version - “1.131.0.” we have addressed this along with other improvements for the plugin, and now

Could you please update the plugin on your app, test it out, and let me know if everything is working well? Also if you have any other questions, please let us know.

Thank you once again for bringing this to our attention, looking forward to your reply.

Best regards,
Stefan

Hi Stephan,

Thanks for this, “remove realtime data” now seems to work as intended.

Do you know of any option where I can have markers using realtime data appear and disapper based on a rule such as the constraints set when adding live realtime data in the mapbox element? I can remove and re-add the data every few seconds but this produces a flickering effectr to the markers as the valid ones appear and disappear.

Thanks for the help so far,
Jack

Hello @J4CKG,

Thanks for your message and update!

Glad to hear the “remove realtime data” action is working well now, after the last update.

For your question, there could be more ways to achieve that. One approach could be using a state to track the new data additions. Then, you can use a “Do when condition is true” event to remove and re-add the data.

Could you try this and let us know if it addresses your need? If not, additional details like screenshots or a screencast would be helpful to understand your desired outcome.

Thanks again, and we look forward to your reply.

Best regards,
Stefan

Hi Stephan,

Thanks as always for the quick reply and helpful suggestions.

I have now tried using a state to check the data additions and the “Do when a condition is true” fucntion and this now adds new markers to the map perfectly. I see the remove/add of realtime data happen as a quick flash of the markers but this is no longer constant and only when the data changes.

However when a marker is no longer valid I see the ‘flash’ happen to indicate the workflow has run but the relevant marker is the only one that does not ‘flash’ on and off and persists when I think it shouldn’t.

Any help would be very well received.

Jack

Hello @J4CKG,

Thank you for your message and feedback, glad to hear that previous sugestion proved helpful to you.

Regarding your further inquiry, to assist you more effectively, could you please provide more details about your use-case? Specifically, I would appreciate screenshots or screencast of your workflow setup, including how you update the markers and set up the plugin element for real-time data. Please also include in the video the concern with ‘flash’ you’re encountering and the results you expect. For recording screencasts, I recommend using the Loom tool.

These details will help us understand your needs better and provide a more tailored solution.

Thank you once again, and I look forward to your reply.

Best regards,
Stefan