-
Notifications
You must be signed in to change notification settings - Fork 916
Map.showDialog()
Display the map as full screen.
###Description
The map is displayed as full screen with the footer.
The footer has the "close" button and the "Legal Notifications" button.
The MAP_CLOSE
event raises when the map dialog is closed.
The Map.setVisible() method is ignored when the map is full screen.
If you call the Map.showDialog()
from the embedded map, the map goes back to the same position when the dialog is closed.
###code
var button = document.getElementById("button");
button.addEventListener("click", function() {
map.showDialog();
});
map.addEventListener(plugin.google.maps.event.MAP_CLOSE, function() {
alert("Map is closed");
});
If you get an error, feel free to ask me on the official community or the issue list.
New version 2.0-beta2 is available.
The cordova-googlemaps-plugin v2.0 has more faster, more features.
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/tree/master/v2.0.0/README.md
New versions will be announced through the official community. Stay tune!
Feel free to ask me on the issues tracker.
Or on the official community is also welcome!
New version 2.0-beta2 is available.
The cordova-googlemaps-plugin v2.0 has more faster, more features.
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/tree/master/v2.0.0/README.md