chellymehdi / vopenlayers

Automatically exported from code.google.com/p/vopenlayers
0 stars 0 forks source link

Map should have a getZoom method. #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There's a getBounds, but no getZoom. It makes it hard to control the zoom level 
server side because I have to override the setZoom and updateExtent methods.

Original issue reported on code.google.com by merke...@gmail.com on 18 Apr 2011 at 1:47

GoogleCodeExporter commented 9 years ago
Also, I think zoomToExtent and setZoom should call repaint(). If I call 
zoomToExtent, then the map doesn't get repainted; adding a call to repaint 
fixes this. 

Original comment by merke...@gmail.com on 18 Apr 2011 at 2:34

GoogleCodeExporter commented 9 years ago
Hi,

I added getter for zoom in r47. 

requestRepaint() calls are not necessary as they already call setDirty(String) 
method, which does some partial repaint magic. I removed some unnecessary 
requastRepaint calls in r49. In case you have problems with updates, could you 
fill a new ticket and add a small test app.

cheers,
matti

Original comment by matti.ta...@gmail.com on 8 May 2011 at 1:56