PhoneGap + Google Maps API v3 : Not displaying (at all) on Android

后端 未结 4 1205
南旧
南旧 2020-12-14 03:41

The Situation

I\'m currently developing an app for a customer, who wishes to have a Google Maps integration. He wants the map to show the route from

4条回答
  •  感情败类
    2020-12-14 03:52

    For me, it turned out that specifying the map's div width and height as percentages did not work. Specifying them as px or vw/vh worked.

    The odd thing - as with the original question - was that the percentage sizes did work in the browser and on iPhone, but not on Android. So I was convinced that the problem was something else - maybe permissions or network connections. But it was just that the percentage sizes made the div invisible.

提交回复
热议问题