summaryrefslogtreecommitdiff
path: root/misc/openlayers/examples/tile-origin.js
blob: 61c5b8ea3e6b1ed9f11328c03f407f2b4eea3376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var map = new OpenLayers.Map({
    div: "map",
    maxExtent: new OpenLayers.Bounds(-130, 30, -80, 55),
    maxResolution: 360 / 256 / Math.pow(2, 4),
    numZoomLevels: 12,
    layers: [
        new OpenLayers.Layer.WMS(
            "Global Imagery",
            "http://maps.opengeo.org/geowebcache/service/wms",
            {layers: "bluemarble"},
            {tileOrigin: new OpenLayers.LonLat(-180, -90)}
        )
    ],
    center: new OpenLayers.LonLat(-110, 45),
    zoom: 0
});