mapsplugin / cordova-plugin-googlemaps

Google Maps plugin for Cordova
Apache License 2.0
1.66k stars 914 forks source link

Click on map doesn't work until I change portrait to landscape #1339

Closed Hurinj closed 7 years ago

Hurinj commented 7 years ago

This happens after I show a keyboard with a div over the map (Android only, not iOS). I click in the input field, close it goes back to the map. The div is full height and width over the map and hide it. map.setClickable is false when the div is shown. I don't know why the keyboard stops the map until I change orientation of phone.

Thank you.

Hurinj commented 7 years ago

I used this

map.refreshLayout();
$("#map_canvas").width('100%');
$("#map_canvas").height('100%');