Enhancement suggestion #398
YahalomsGuy
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Recently came across this package and implemented it in an application I am working on , and it is amazing, love it!
There's only one thing bothering me about it.
The initialization of the Map is conducted and performed in Native,
So since I want to have a dynamic ApiKey (fetched from my server), I had to create Native (Kotlin/Swift) functions to fetch the data before the initialization.
Normally, I would think this is what it is and there's nothing to do about it, but then I came across a fork of this package , exists in Pub.dev too.
it is called yandex_mapkit_lite which lacks many of the advanced features this package has (it is not working with a map controller for example)
But one thing I have noticed is that in that package , the initialization of the map is performed in Flutter (in the main function, before the app is called)
I truly believe combination of that ability in Yandex_MapKit will make it much more efficient to anyone ever uses it.
I have started digging into the package to see how I can do it , but than I understood it involves a lot of Method Channels and native work, too much for me.
I would love to hear that someone have taken the challenge and refactored the initialization so it will be initialized in Flutter.
Beta Was this translation helpful? Give feedback.
All reactions