Replies: 3 comments 2 replies
-
@pamtbaau I think that's a great enhancement! Could you elaborate a bit what the characteristics of annotation are, please? I assume an annotation gets placed relatively to the marker on the map? Are annotations somewhat limited like for example text labels or would it work for other use cases like pop ups as well?
Yes, that's probably the biggest design limitation we currently have. It's because rendering of the maplibre map and flutter render separatly. On android the delay should have improved in version 0.2.1 but the delay is still very much noticable. When the user moves the map camera, the flutter plugin gets notified (currently still via a platform channel) and updates its children widgets. We could give jni/ffi bindings another try. As far as I know their performance should improve further in the next couple of flutter releases. To remove the delay completely, a direct integration of the mbgl renderer would be needed. See #234 for more information. |
Beta Was this translation helpful? Give feedback.
-
@josxha, It took me some time to get back to this. Sorry about the delay.
That's correct. In below example, I've used 'Text', and 'IconButton' as Annotation. Annotation also has an Offset property to finetune the positioning. I've used the Offset, to center 'topCenter' and 'bottomCenter'.
Currently, I've implemented the
It depends very much on the amount of data the Map has to draw. When viewing the worldmap, the lagging is quite noticable, but when zoomed in on eg. the country level the lag is noticable, but acceptable. I do not really see a performance difference between Web and my (less then 140 Euro low end) Android phone. |
Beta Was this translation helpful? Give feedback.
-
How can I help you best? A description with code snippets, or a PR with the proof of concept we can discuss? Or... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In a previous discussion we discussed the use-case of adding and interacting (tap, longTap etc) on Markers. That functionality has been implemented in the meantime.
Markers without Annotations aren't that valuable and I would like to extend the Markers in the WidgetLayer with zero or more annotations. What I've build so far:
Annotation:
Would like to center align the Text to topCenter and bottomCenter of Marker, but haven't been able to figure out reliably the width of the Text widget.
Would the functionality of Annotations fit your design goals?
By the way... compared to eg. MarkerLayer, when moving the Map, the widgets are lagging behind which is not that nice. Could this be improved somehow?
Beta Was this translation helpful? Give feedback.
All reactions