[OpenLayers-Users] fractional zoom and vector layer extend bound
Fabien Maison
fabien at fmaison.com
Tue Apr 1 08:37:10 PDT 2014
Hi all !
In an application with Openlayer 2.12, i would like to use getDataExtend() of a vector layer to set the map bound to the vector data on this layer.
It work, but sometime, if the size of the vector feature is between to zoom level, the layer is not entirely visible.
How to force the map to zoom and to be sure that the vector layer is not cropped ?
I'm testing with the fractionalZoom option at true for the map but it do nothing at all...
For now i use this :
map.fractionalZoom = true;
map.zoomToExtent(myVectorLayer.getDataExtent());
Anyone know the way to use fractionalZoom to set the map closest to the vector layer ?
Thank's a lot for your help.
fbm
More information about the Users
mailing list