openlayers / ol2

OpenLayers v2 - deprecated!
Other
1.47k stars 771 forks source link

Vector drawing with SVG not working at 1 scale, close to 180 line. #447

Open scaddenp opened 12 years ago

scaddenp commented 12 years ago

This includes relatively minimal code (but with useful controls) for demostrating the bug. The file opens with just a google map and one of our public layers, with an extent that crosses the 180 line. Initial zoom is 1:10M. Active on opening is a draw feature control with a polygon handler. Note the blue circle indicating it is active and a polygon can be drawn. Now zoom in 1 click (to 1:5M). The polygon drawing disappears. Zoom in another click and it comes back again. Note that the drawing is still active - on double-click it creates a valid polygon for selecting (though code not present in this example).

scaddenp commented 12 years ago

Here is code:

OpenLayers Zoom bug ```

180 deg problem

```
```