Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 ?

share|improve this question
1  
where do you take wms? geoserver, mapserver or anything. pls give some detail. –  Aragon May 31 '12 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 '12 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. –  Ryan Twilley May 31 '12 at 22:37
    
couldn't you use an ImageLayer? - dev.openlayers.org/releases/OpenLayers-2.11/examples/… –  iant Jun 1 '12 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 '12 at 7:29
show 1 more comment

2 Answers 2

up vote 0 down vote accepted

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

share|improve this answer
    
I think this might be just what I was looking for. Thanks ! –  Olivier Jun 5 '12 at 13:20
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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