[OpenLayers-Users] Special Zoom - only zoom out or pan
Jan Tappenbeck
osm at tappenbeck.net
Thu Jun 23 04:53:03 EDT 2011
hi !
it is possible to zoom to a collection of points by
var bounds = new OpenLayers.Bounds ();
// for some points
var wpoint;
wpoint = new OpenLayers.LonLat (coord[IdWayPoint][1],
coord[IdWayPoint][0]).transform(map.displayProjection,
map.getProjectionObject());
bounds.extend (wpoint);
but now i have s special situation.
only if the zoomlevel is smaller (ex. form 13 to 10) this should be
chance - otherwise the pan-part should be use.
did anybody now how to make this if possible ??
regards Jan :-)
More information about the Users
mailing list