Fix offset when laying in vectors on top of the OSM tiles.
This commit is contained in:
parent
0c480e05f0
commit
e03605929b
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ function createMap(divName, options) {
|
||||||
new OpenLayers.Control.ScaleLine()
|
new OpenLayers.Control.ScaleLine()
|
||||||
],
|
],
|
||||||
units: "m",
|
units: "m",
|
||||||
maxResolution: 156543,
|
maxResolution: 156543.0339,
|
||||||
numZoomLevels: 20
|
numZoomLevels: 20
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -48,8 +48,8 @@ OpenLayers.Layer.OSM = OpenLayers.Class(OpenLayers.Layer.TMS, {
|
||||||
initialize: function(name, url, options) {
|
initialize: function(name, url, options) {
|
||||||
options = OpenLayers.Util.extend({
|
options = OpenLayers.Util.extend({
|
||||||
attribution: "Data by <a href='http://openstreetmap.org/'>OpenStreetMap</a>",
|
attribution: "Data by <a href='http://openstreetmap.org/'>OpenStreetMap</a>",
|
||||||
maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
|
maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
|
||||||
maxResolution: 156543,
|
maxResolution: 156543.0339,
|
||||||
units: "m",
|
units: "m",
|
||||||
projection: "EPSG:900913",
|
projection: "EPSG:900913",
|
||||||
transitionEffect: "resize"
|
transitionEffect: "resize"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue