Breaking change to google_maps_flutter

643 views
Skip to first unread message

Amir Hardon

unread,
Aug 28, 2018, 10:41:50 PM8/28/18
to Flutter Dev
https://github.com/flutter/plugins/pull/743 changes the public API of the google_maps_flutter plugin.

This is not technically a breaking change as the plugin was not yet published, but I thought to give a heads up in case anyone is using it.

The PR changes the plugin to use AndroidView on Android, and disables the plugin for iOS for now.

Note that the plugin is still not published and the API is not stable.

John Zhong

unread,
Aug 30, 2018, 6:36:39 AM8/30/18
to Flutter Dev
Is it possible to make the main URL configurable? for instance the google map can be accessing by https://www.google.cn/maps/ but https://www.google.com/maps/.

Thank you!

Amir Hardon

unread,
Aug 31, 2018, 11:45:57 AM8/31/18
to John Zhong, Flutter Dev
I believe that the language that's used by Google Maps is determined by current locale. (It will show whatever language the user's phone is set to)

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

王納米

unread,
Aug 31, 2018, 11:58:40 AM8/31/18
to Amir Hardon, John Zhong, Flutter Dev
Hi Amir,

I don't think that's the case. Google maps in China is a special case due to the ______ regulations.

Check out "Loading the API in China" in the docs here: https://developers.google.com/maps/documentation/javascript/localization

Amir Hardon

unread,
Aug 31, 2018, 12:10:45 PM8/31/18
to 王納米, John Zhong, Flutter Dev
Interesting, do you know if there's an equivalent for the Android/iOS Maps SDKs?

王納米

unread,
Aug 31, 2018, 12:13:25 PM8/31/18
to Amir Hardon, Flutter Dev, John Zhong
I'm only aware of the web one, sorry.

Andreas Sumerauer

unread,
Sep 7, 2018, 5:58:59 AM9/7/18
to Flutter Dev
I am afraid I am already using the plugin for an inhouse application and everybody here has an iPhone.
How would I reference the last commit before the change in my pubspec.yaml to make sure I don't break my builds?
The docs don't really give me a clou:

dependencies:
 
(...)
 google_maps_flutter
:
   git
:
     url
: git://github.com/flutter/plugins
     path
: packages/google_maps_flutter
     
ref: <What should I put here to make sure I use the version before the change?>

Thanks!

Andreas Sumerauer

unread,
Sep 9, 2018, 12:28:58 PM9/9/18
to Flutter Dev
This will use the last commit before the change:

 
dependencies:
 
(...)
 google_maps_flutter
:
   git
:
     url
: git://github.com/flutter/plugins
     path
: packages/
google_maps_flutter
     
ref: 69380a9914d57465cbe5ae78d6604c7839cb7fb3


Reply all
Reply to author
Forward
0 new messages