setMyLocationButtonEnabled not available on @ionic-native/google-maps
See original GitHub issueI’m submitting a … (check one with “x”)
- question
- any problem or bug report
- feature request
If you choose ‘problem or bug report’, please select OS: (check one with “x”)
- Android
- iOS
cordova information: (run $> cordova plugin list
)
com.googlemaps.ios 2.6.0 "Google Maps SDK for iOS"
cordova-plugin-device 2.0.1 "Device"
cordova-plugin-googlemaps 2.2.5 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.0.5 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-whitelist 1.3.3 "Whitelist"
If you use @ionic-native/google-maps
, please tell the package.json (only @ionic-native/core
and @ionic-native/google-maps
are fine mostly)
Current behavior:
setMyLocationButtonEnabled instance member is not found on @ionic-native/google-maps package. I’d like to know if there’s a workaround to make the button appear, or I’ll just have to wait for you to implement it (I can also help you doing it if you guide me).
Expected behavior:
Function found and button shown, as the ionic framework documentation says.
Screen capture or video record:
Related code, data or error log (please format your code or data):
The person who share your project files on Github (or other git repository) is in faster lane than other people.
Please share your project files on Github or others(Bitbucket, Gitlabs...etc).
If you don't want to share your project files, please create a demo project, then share it.
Screen captures, and/or native logs(such as Logcat, xcode logs) are appreciate.
Giving much information, you are waiting time is less.
Thank you for your cooperation.
this.map.setMyLocationButtonEnabled(true) // undefined ...
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (11 by maintainers)
Top GitHub Comments
@wf9a5m75 thanks for the insight. In my opinion Google Maps is a very important part of the mobile ecosystem so Capacitor will need to support it sooner or later otherwise people will refuse using it. I’m happy with your Google Maps plugin and I don’t consider switching to anything else.
@amsimoes You can not install the package from the git repo. You need to build the package.
The easiest solution is @battika way. Some people wants to more, they builds by themselves.
If you want to build the package, you can do like this: