I am trying to implement a homemade WMS with Openlayers. I only have one "level" of images with one resolution and I would like to add different zoom lvls with those images.

Is this possible just with Openlayers ?

  • 1
    where do you take wms? geoserver, mapserver or anything. pls give some detail.
    – urcm
    May 31, 2012 at 13:33
  • I am using my own images. Actually, when the WMS request is made, I catch it with Apache and a rewrite rule, and I replace the url with the location of my map pieces. I'm just using WMS for the dynamic images downloading part.
    – Olivier
    May 31, 2012 at 14:18
  • hm, where'd you get your one 'level'? I think Aragon is heading in the right direction. In order to create different levels, you might want to look for a server-side solution. Openlayers will consume WMS, but it won't generate any more content. May 31, 2012 at 22:37
  • couldn't you use an ImageLayer? - dev.openlayers.org/releases/OpenLayers-2.11/examples/…
    – Ian Turton
    Jun 1, 2012 at 7:28
  • That's the point, I don't want to create new levels. In the first place, we were using "Layer.Image" with one big image built with all the little ones I needed. The zoom was a simple zoom, there was no need to have 3 different images resolution to have 3 zoom lvls. This is what I would like to reproduce, but with the layer WMS instead. My "little images" are on the server the application is deployed. I'm using Java by the way.
    – Olivier
    Jun 1, 2012 at 7:29

2 Answers 2


OpenLayers.Map has the "client zoom" property that can help you creating zoom leves on the client side.

See the sample: http://openlayers.org/dev/examples/clientzoom.html

  • I think this might be just what I was looking for. Thanks !
    – Olivier
    Jun 5, 2012 at 13:20

The Image layer may be what you're looking for. See http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/Image-js.html.

Your Answer

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

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