OpenLayers OpenLayers

Changeset 6110

Show
Ignore:
Timestamp:
02/08/08 11:26:55 (1 year ago)
Author:
ahocevar
Message:

added StyleMap and tests, added renderIntent property to SelectFeature, keep current feature renderIntent in Layer.Vector

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/ahocevar/styleMap/openlayers/lib/OpenLayers/Control/SelectFeature.js

    r6079 r6110  
    9797     */ 
    9898    selectStyle: null, 
     99     
     100    /** 
     101     * Property: renderIntent 
     102     * {String} key used to retrieve the select style from the layer's 
     103     * style map. 
     104     */ 
     105    renderIntent: "select", 
    99106 
    100107    /** 
     
    250257        this.layer.selectedFeatures.push(feature); 
    251258 
    252         var selectStyle = this.selectStyle || "select"
     259        var selectStyle = this.selectStyle || this.renderIntent
    253260         
    254261        this.layer.drawFeature(feature, selectStyle); 
  • sandbox/ahocevar/styleMap/openlayers/lib/OpenLayers/Layer/Vector.js

    r6079 r6110  
    357357        if (typeof style != "object") { 
    358358            var renderIntent = typeof style == "string" ? 
    359                 style : "default"
     359                style : feature.renderIntent
    360360            style = feature.style || this.style; 
    361361            if (!style) {