Is there a way to prevent the map from requesting location permission?
Opened this issue · 2 comments
kaddyadriano commented
I'd like to prevent the map from requesting for permission since this is handled somewhere else.
I have tried:
var map = plugin.google.maps.Map.getMap(div, {
controls: {
myLocationButton: false,
myLocation: false
}
});
No luck. Please help!
KimberleeDArmstrong commented
marcorosetti commented
I'd like to prevent the map from requesting for permission since this is handled somewhere else. I have tried:
var map = plugin.google.maps.Map.getMap(div, { controls: { myLocationButton: false, myLocation: false } });
No luck. Please help!
Caused by this line of code in PluginMap.java:
if (controls.has("myLocationButton") || controls.has("myLocation")) {
You need to remove myLocationButton
and myLocation
from controls property in order to prevent the check