4

I am using Openlayers to display a map from Vienna Open Data (Capabilities) in an app for mobiles, which have higher DPI screens. The resolution of the tiles is not so good (I suppose because they are JPEG instead of PNG).

Is it possible to use the tiles from the upper zoom level as if they where smaller tiles for the current level, faking the resolution?

1 Answer 1

0

You can use the Client Zoom Feature. OpenLayers stretches the layer div when the resolution is not supported by that layer's tile service.

http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/clientzoom.html

6
  • AFAIK the client zoom is used to fake intermediate zoom levels that are missing. I tried that, when I zoom out all is well until I reach the next zoom level, then the bad resolution comes again. I would like to use the tiles of level x on level x-1, zoomed to 50% (thus increasing the resolution by factor 2)
    – msd
    Nov 4, 2013 at 14:50
  • 1
    Then You need to use maptiler.org, it will break the images into smaller tiles for each zoom level and serve them separately.
    – neogeomat
    Nov 5, 2013 at 6:56
  • You mean using local tiles? That is not an option because of device constraints for the size of the app.
    – msd
    Nov 6, 2013 at 16:00
  • Tiles will be on server not on client. Client requests tile on the area it is viewing.
    – neogeomat
    Nov 7, 2013 at 11:04
  • Sorry, I don't get it. How can I use maptiler.org with an existing map service, to which I have no access to?
    – msd
    Nov 8, 2013 at 8:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.