[OpenLayers-Trac] [OpenLayers] #2876: VML rendering issue with polygons with zero area interior rings

OpenLayers trac-20090302 at openlayers.org
Tue Oct 12 18:13:40 EDT 2010


#2876: VML rendering issue with polygons with zero area interior rings
--------------------------+-------------------------------------------------
 Reporter:  tschaub       |       Owner:  ahocevar    
     Type:  feature       |      Status:  new         
 Priority:  minor         |   Milestone:  2.11 Release
Component:  Renderer.VML  |     Version:  2.10        
 Keywords:                |       State:              
--------------------------+-------------------------------------------------
 In IE, if you draw a polygon that has an interior ring with zero area
 (what you first get while digitizing an interior ring), an unwanted
 triangle is rendered between the first two points of the exterior ring and
 the closing point (perhaps) of the interior ring.

 To reproduce:

  1. Open the [http://openlayers.org/dev/examples/vector-formats.html
 vector formats] example in IE.
  1. Paste in the GeoJSON below:
 {{{
 {
   "type": "Feature",
   "id": "OpenLayers.Feature.Vector_194",
   "properties": {},
   "geometry": {
     "type":"Polygon",
     "coordinates": [[
       [-104.7, 30.1], [-104.7, -46.0], [99.8, -47.5], [98.4, 31.9],
 [-104.7, 30.1]
     ], [
       [75.2, 3.5], [-82.2, 0.7], [-82.2, 0.7], [75.2, 3.5]
     ]]
   },
   "crs": {
     "type": "OGC",
     "properties": {
       "urn": "urn:ogc:def:crs:OGC:1.3:CRS84"
     }
   }
 }
 }}}
  1. Hover over the feature to see the unwanted triangle.

 The problem does not exist in all cases with zero area interior triangles
 (tweaking the numbers above to produce a regular rectangle and an interior
 ring parallel to the top/bottom demonstrates a case where the unwanted
 triangle does not appear).

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2876>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list