No more percentage based positioning.
Client zoom now supports both over- and undersampling.
This commit is contained in:
@@ -482,9 +482,9 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
|
||||
viewHeight = viewSize.h,
|
||||
offsetLeft = (viewWidth / 2 * this.ratio) - viewWidth / 2,
|
||||
offsetTop = (viewHeight / 2 * this.ratio) - viewHeight / 2;
|
||||
offsetLeft += parseInt(this.map.layerContainerDiv.style.left, 10);
|
||||
offsetLeft += this.map.layerContainerOriginPx.x;
|
||||
offsetLeft = -Math.round(offsetLeft);
|
||||
offsetTop += parseInt(this.map.layerContainerDiv.style.top, 10);
|
||||
offsetTop += this.map.layerContainerOriginPx.y;
|
||||
offsetTop = -Math.round(offsetTop);
|
||||
|
||||
this.div.style.left = offsetLeft + 'px';
|
||||
|
||||
Reference in New Issue
Block a user