It is posible to refresh Shape data on runnig app?

HEllo

I'm using SFMaps into GIS aplication.
The problem is that the data comes from Firestore.
It is posible to update the data, by a refresh action?

Thanks in advance!!!

3 Replies 1 reply marked as answer

MS Mohamed Samsudeen K S Syncfusion Team January 15, 2021 01:07 PM UTC

Hi Ray,

 

It is possible to update elements like markers and shapes like polygons, lines, arcs, etc. dynamically based on the changes in the data source. However, you may need to listen to the changes in the data in the firestore for your requirement. Once the updated data is obtained, you can update the maps by calling setState or respective methods for markers as shown in the below links.


https://help.syncfusion.com/flutter/maps/vector-layers/line-layer#adding-lines

https://help.syncfusion.com/flutter/maps/markers#adding-markers-dynamically


We have attached the sample code snippet for updating the lines in the UI dynamically. If you need further guidance regarding this, we kindly request you to provide more details about your requirement. We will be happy to assist you with this.

 

Regards,

Samsudeen


Attachment: dynamic_update_64d3179c.zip

Marked as answer

RC Ray Cast Sant January 16, 2021 02:31 PM UTC

Thank you Mohamed, this is very helpful!!

Regards


SS Swetha Srikumar Syncfusion Team January 18, 2021 06:56 AM UTC

Hi Ray, 
 
Most welcome. Please let us know if you need any further assistance. 
 
Regards, 
Swetha

Loader.
Up arrow icon