So I have 2 Table widgets and a Maps Widget on the Thingsboard, when I click an item in the list table, I want the maps to auto zoom to the marker in the second Maps Widget on the Thingsboard?
How to auto zoom on Maps Thingsboard with type openstreetmaps?
I would make two dashboards.
First one is the one you already have, so the map of all Devices/Assets and Table. On click of some table row set and action to navigate to new dashboard state.
Second dashboard is the one that opens up upon that previous action, and also has alias that will take dashboard state and point to clicked Device/Asset. With that, you can have a map that will show only that clicked Device/Asset and therefor zoom onto it.
Related
I am using flutter. I want to get the clicked marker id when a marker is clicked on Google Maps. Or I would like to know if I clicked a marker or a map area. How can I do it?
I want to retrieve the ids dynamically and i have not been able to
As above, I want to create a list of options with switches that can be rolled up or rolled out when user click something (I thought about Row with text "Options" and button on the right side that can be used to this feature). Do we have a widget in Flutter that can do something similar?
attached are my current blueprints. i have a widget that is the level select screen, which will contain instances of a level select button. depending on which button is clicked, i want it to update a variable in the level select widget which stores the level from that particular button. I'm trying to do this so that i can add or remove levels from the selector in a modular way, as well as because there will be an option to select multiple levels played one after the other.
https://i.gyazo.com/71731a6682b186b0e1b874a80144677c.png is the button code, when clicked it will take the editor value as an int, and (when working properly) send that to the level select code which is pictured here https://i.gyazo.com/277e54770aa1a70bdab083f8b98aa714.png, selecting the proper level based on the value of variable 'selected level' when the 'proceed' button is clicked.
Here is my question, I have a simple grid list, where each tile contains a text and a favorite icon.
That grid is linked to a provider (which contains all the data), and each tile is linked to a nested provider which points to an individual element of the list provided above.
Now when I click on a tile I navigate to a details page, which just shows the name of the object, a favorite icon (outlined or not if the object is favorite or not) and a button "mark as favorite".
(I do that via Navigator with an argument representing my object, that I retrieve after from the grid provider)
Now when I click on the button I want to mark that object as a favorite, which is working fine (in the grid it shows the good status thanks to the provider), BUT how do I update my details page right away ?
Should I always use a stateful widget in that case ? or is there another way to "listen" to my item provider ?
I suppose that somehow I should be able to mark my details page as a listener of my provider, but I don't know how cause the details page is not in the same hierarchy as my grid tile...
Thanks for any feedback on this !
I have added a googleMap to my application successfully. Now i need to add a refresh button to the map so that it gets refreshed. I have added the button, but i don't know how to refresh the map.
Is there any predefined method that i could use to refresh the map. Help ??
there is nothing predefined for REFRESH - what you are looking for in the MapKit. you need to remove old annotations and have to add the new ones manually(from your own code) for zooming you need to create a span on your own to set it to any value you like (that's also to be done by your own code).