OpenLayers OpenLayers

Ticket #1120: selectStyle.patch

File selectStyle.patch, 0.6 kB (added by tschaub, 10 months ago)

allow for a selectStyle to be set on a feature

  • lib/OpenLayers/Control/SelectFeature.js

    old new  
    171171            feature.originalStyle = feature.style; 
    172172        } 
    173173        this.layer.selectedFeatures.push(feature); 
    174         feature.style = this.selectStyle; 
     174        feature.style = feature.selectStyle ? 
     175                        feature.selectStyle : this.selectStyle; 
    175176        this.layer.drawFeature(feature); 
    176177        this.onSelect(feature); 
    177178    },