Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I simply want a map on a webpage where I can zoomin and zoomout and navigate around. I'm working on this for 4 days now, and can't get it to work:

I want to display the map using a WMS-service here in Austria with Openlayers. Here's the getCap XML:

so this is my openlayers code:

function init() {
    map = new OpenLayers.Map("map", {
        controls : map_controls
    wms = new OpenLayers.Layer.WMS("GIS", "", {
        layers : 'Orthophoto,Luftbild_MR,Luftbild_1m,Luftbild_8m,Satellitenbild_30m',
        key : '6ae2a41178c77ccee1db7248c9f92b04'
            }, {
                projection : new OpenLayers.Projection('EPSG:31287'),
                maxExtent : new OpenLayers.Bounds(110000, 250000, 690000, 590000)
    if(!map.getCenter()) {

and here's the link to take a look at the actual page: myMapSite

but it should look something like this (made it with an desktop app): Link_to_Picture

(I think the small rectangles are due to the free service and to not use it commercially)

So basically I want to see the whole map and then zoom in.

Since the only way to see a map (although the zoom-factor is way off) was to set the maxExtend with the boundingBox values from the getCapabilities-xml file, I'm assuming that my Bounds/Extent/Scale is wrong?

But what values should I use? or is there another problem?

I'm really desperate...

share|improve this question
up vote 3 down vote accepted

Try setting the property maxResolution on the map object:

map = new OpenLayers.Map("map", {
    controls : map_controls,
    maxResolution: 1000
share|improve this answer
it didn't work with maxResolution: 1000 but it did work with maxResolution: 'auto'!!!!! I'm sooooo happy right now! THANK YOU!!!! – user1173933 Jan 30 '12 at 10:06
Well it did work with maxResolution: 1000 when I injected the value using FireBug on your site - but if maxResolution: 'auto' works for you, then great ;) – Chau Jan 30 '12 at 12:12

Your Answer


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.