Closed kevmoo closed 4 months ago
How can we help here? Seems like js_wrapping
is the culprit!
This is a real big task. Not sure to have enough free time in the next days/weeks :-/
@a14n – you've been a MACHINE here. Thanks for clearly communicating your limitations!
We have some conflicts with libraries of use of package js the major part of libraries are updated to use js 0.7 but Google maps uses 0.6 is it possible to update to version 0.7.1?
I started working on a new version but it is a full rewrite and will take some time for it to land.
Any updates here @a14n ? anyway we can help?
I started a new generator based on scraping/parsing https://developers.google.com/maps/documentation/javascript/reference/.
There are some challenges:
LatLng|LatLngLiteral
?I don't have a lot of free time to work on it. I will try to push some code on a branch once I have something clean.
I'm also waiting for an update that addresses the dependency on the 3 year old js ^0.6.3, starting to get conflicts with other packages that uses 0.7.1.
I have also seen this, that might need to be taken into consideration for future updates.
Important: Prefer using dart:js_interop instead of this package for JS interop. See the [JS interop documentation](https://dart.dev/interop/js-interop) for more details.
Also having problems with old js version. I would really appreciate new resolved version
A little update on this migration/rewrite. I made great progress and it's close to have a pre-version to test. If someone is crazy enough to give it a stab the code lives in the new-js-interop branch. WARNING this is a working branch where force-pushes occurs regularly.
This was expected, but the new google_maps code is not a drop in replacement for the old version for anyone thinking of trying it
It took a long time but I just published google_maps-8.0.0-dev.1
.
To migrate, here are the main points:
GMap
should be rename to Map
toJS
and toDart
are sometimes required on elements accepting/returning several typesamazing! thank you! We'll try it out.
@kevmoo do you have a designated person to do the migration? If not I can try and do it.
@Rexios80 – want to run on this? https://github.com/flutter/packages/pull/7064
Sure! I can take a look next week.
@a14n I almost have a fully working version of google_maps_flutter
using this new google_maps
version here: https://github.com/flutter/packages/pull/7077
Thanks for the awesome work!
I just had a few issues I resolved in https://github.com/a14n/dart-google-maps/pull/132 along with one issue I mentioned there that I have been unable to resolve without help. Please take a look when you get a chance.
Done via google_maps-8.0.0
Sadly, v7.1.0 is still not ready for wasm.
js_wrapping
is outdated and still usespkg:js
. There is still a dependency onpkg:js
.