Fix offset when laying in vectors on top of the OSM tiles.

This commit is contained in:
Christopher Schmidt 2008-04-20 13:16:29 +00:00
parent 0c480e05f0
commit e03605929b
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ function createMap(divName, options) {
new OpenLayers.Control.ScaleLine()
],
units: "m",
maxResolution: 156543,
maxResolution: 156543.0339,
numZoomLevels: 20
});

View file

@ -48,8 +48,8 @@ OpenLayers.Layer.OSM = OpenLayers.Class(OpenLayers.Layer.TMS, {
initialize: function(name, url, options) {
options = OpenLayers.Util.extend({
attribution: "Data by <a href='http://openstreetmap.org/'>OpenStreetMap</a>",
maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
maxResolution: 156543,
maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
maxResolution: 156543.0339,
units: "m",
projection: "EPSG:900913",
transitionEffect: "resize"