Domanda

I am developing a mobile OpenLayers web site which uses the Google Maps Street layer. My problem is that it is almost impossible to read annotations on current generation high resolution displays.

The static Google Maps API (v2) featured a scale option to allow for high resolution screens. Is there anything to scale up the display Google Maps within OpenLayers?

I target specifically the Chrome browser on Android devices.

Cheers, Dennis

È stato utile?

Soluzione

Being fairly new to mobile web development I forgot to set a width as a meta tag in the site head. Defining a width fixes the styling problem on high resolution devices.

<head runat="server">
    <meta name="viewport" content="width=500px" />
</head>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top