A Map widget for egui: review needed #5662
Replies: 1 comment
-
The way egui widget usually work is that they store their state in a hashmap inside the egui/crates/egui/src/containers/scroll_area.rs Lines 66 to 74 in 9936966 Of course, each widget needs a unique egui/crates/egui/src/containers/scroll_area.rs Lines 313 to 318 in 9936966 When you use |
Beta Was this translation helpful? Give feedback.
-
Hey, guys. I've been working lately into integrating Galileo map rendering engine into
egui
applications by creating a simple widget. And here is the usage example of the widget.I'm not that fluent with
egui
so if someone would like to take a look at the code and give a suggestion or two on how to make it moreegui
ly, I would greatly appreciate it.In particular, I am not fond of the fact that the application state must explicitly store
EguiMapState
somewhere, especially considering the fact that this state cannot be serialized/deserialized. This makes storing/loading the state of the app trickier. But I could not figure out a good way to hide this implementation detail from the user. (e.g.egui
storage also requires the state to be serializable AFAII)Beta Was this translation helpful? Give feedback.
All reactions