androidcordovagoogle-maps-api-3phonegap-buildmulti-device-hybrid-apps

How to zoom google map in high density android devices in hybrid mobile app using google map javascript API?


I have developed a hybrid mobile application on apache cordova. I am implementing map feature in it using google map javascript API. I am facing an issue on high density devices such as xhdpi and xxhdpi where map font and other imaged are shrunk. when I increase zoom to 200% of div of map, the marker becomes non-clickable.

Please help me to optimize view of map in xhdpi and xxhdpi android devices.

In Android xhdpi devices devices : (Map is not clearly visible)

enter image description here

In Android devices where map div zoom = 200% (Map Marker click is not working in this case)

enter image description here

*Note : The same code is working fine on iOS devices as I think iOS is scaling it by itself.


Solution

  • The is resolved now by using viewport property and media query. Just use initial scale property for respective high density devices.