Closed ditman closed 1 year ago
In 6.3.0 you can now call importLibrary
:
void main() async {
await importLibrary("maps");
GMap(
document.getElementById("map") as HtmlElement,
MapOptions()
..center = LatLng(-34.397, 150.644)
..zoom = 8,
);
}
You're a machine @a14n!
Working in something unrelated (endorsing google_maps_flutter_web), I just noticed this warning in the JS console:
It seems that the Google Maps library has gone "modular", and the "legacy" mode that we're using wants a callback (in my tests everything works without the callback for now, though!).
Should the library adopt/export the new loader syntax?
Here's the full list of libraries that can be loaded through the new
importLibrary
loader: