[OpenLayers-Trac] [OpenLayers] #3584: StyleMap doesn't apply correctly to Geometry Collections

OpenLayers trac-20090302 at openlayers.org
Fri Nov 25 11:54:02 EST 2011


#3584: StyleMap doesn't apply correctly to Geometry Collections
--------------------------+-------------------------------------------------
 Reporter:  gravitystorm  |       Owner:              
     Type:  bug           |      Status:  new         
 Priority:  minor         |   Milestone:  2.12 Release
Component:  StyleMap      |     Version:  2.11        
 Keywords:                |       State:              
--------------------------+-------------------------------------------------
 I have a styleMap which applies different colours to point, lines and
 polygons. However, if the features are delivered as members of a
 geometrycollection, the style rules don't apply - e.g. polygons in the
 collection don't pick up the polygon style. Also, there doesn't appear to
 be a way to apply different styles to the different feature types within
 the collection.

 In the attached example there is one vector layer consisting of four
 features - a line, polygon and point, and a geometrycollection of a
 (slightly shifted) line, polygon and point. I would expect both polygons
 to look the same, given the styleMap for the layer.

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


More information about the Trac mailing list