ArgParser does not deal well with fractionalZoom, r=fredj (closes #3515)
This commit is contained in:
@@ -122,7 +122,7 @@ OpenLayers.Control.ArgParser = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
this.center = new OpenLayers.LonLat(parseFloat(args.lon),
|
this.center = new OpenLayers.LonLat(parseFloat(args.lon),
|
||||||
parseFloat(args.lat));
|
parseFloat(args.lat));
|
||||||
if (args.zoom) {
|
if (args.zoom) {
|
||||||
this.zoom = parseInt(args.zoom);
|
this.zoom = parseFloat(args.zoom);
|
||||||
}
|
}
|
||||||
|
|
||||||
// when we add a new baselayer to see when we can set the center
|
// when we add a new baselayer to see when we can set the center
|
||||||
|
|||||||
Reference in New Issue
Block a user