Add style property "display" to vector feature style. If display is "none" the feature won't be rendered and there's a DOM node for that feature it'll be removed. Commiting this on behalf of ahocevar. Thanks Andreas for the patch. r=crschmidt. (closes #1173).

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5541 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2007-12-20 19:20:23 +00:00
parent 2d1099d60d
commit 2931cd3065
3 changed files with 31 additions and 13 deletions

View File

@@ -265,6 +265,7 @@ OpenLayers.Feature.Vector = OpenLayers.Class(OpenLayers.Feature, {
* - graphicOpacity
* - graphicXOffset
* - graphicYOffset
* - display
*/
OpenLayers.Feature.Vector.style = {
'default': {