1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <link rel="stylesheet" href="../../theme/default/style.css" type="text/css" />
4 <style type="text/css">
8 border: 1px solid gray;
12 <script src="../../lib/OpenLayers.js"></script>
13 <script type="text/javascript">
18 projection: new OpenLayers.Projection("EPSG:900913"),
19 displayProjection: new OpenLayers.Projection("EPSG:4326"),
21 maxResolution: 20, //0.07464553542137146,
22 maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
23 20037508, 20037508.34)
25 map = new OpenLayers.Map('map', options);
26 var vector = new OpenLayers.Layer.Vector(
32 var x = -20000;//4.33791754;
34 point = new OpenLayers.Feature.Vector(
35 new OpenLayers.Geometry.Point(x, y)
39 vector.addFeatures([point]);
40 map.setCenter(new OpenLayers.LonLat(0, 0), 5);
44 map.panTo(point.geometry.getBounds().getCenterLonLat());
49 <body onload="init()">
50 <h3 id="title">SVG inValidRange Redraw Test Case</h3>
51 <p>Before fixing #1631, after klicking Go! no point would have appeared. The Go! button
52 pans the map over a long distance. Before dragging, the point would have been
53 outside the valid range, and the pan operation would not have triggered the SVG
54 coordinate system to be recreated. The new vector rendering takes care of all this. </p>
56 <input type="button" value="Go!" onclick="pan();"></input>