Changeset 6110
- Timestamp:
- 02/08/08 11:26:55 (1 year ago)
- Files:
-
- sandbox/ahocevar/styleMap/openlayers/lib/OpenLayers/Control/SelectFeature.js (modified) (2 diffs)
- sandbox/ahocevar/styleMap/openlayers/lib/OpenLayers/Layer/Vector.js (modified) (1 diff)
- sandbox/ahocevar/styleMap/openlayers/lib/OpenLayers/StyleMap.js (added)
- sandbox/ahocevar/styleMap/openlayers/tests/test_StyleMap.html (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/ahocevar/styleMap/openlayers/lib/OpenLayers/Control/SelectFeature.js
r6079 r6110 97 97 */ 98 98 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", 99 106 100 107 /** … … 250 257 this.layer.selectedFeatures.push(feature); 251 258 252 var selectStyle = this.selectStyle || "select";259 var selectStyle = this.selectStyle || this.renderIntent; 253 260 254 261 this.layer.drawFeature(feature, selectStyle); sandbox/ahocevar/styleMap/openlayers/lib/OpenLayers/Layer/Vector.js
r6079 r6110 357 357 if (typeof style != "object") { 358 358 var renderIntent = typeof style == "string" ? 359 style : "default";359 style : feature.renderIntent; 360 360 style = feature.style || this.style; 361 361 if (!style) {
