Skip to content

Map.showDialog()

Masashi Katsumata edited this page May 19, 2014 · 4 revisions

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");
});

Join the official community

New versions will be announced through the official community. Stay tune!

Do you have a question or feature request?

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

Clone this wiki locally