Symbolizer defaults for the select renderIntent

This commit is contained in:
ahocevar
2013-08-30 13:47:43 +02:00
parent 83720975f8
commit 9dae49dc18
4 changed files with 41 additions and 9 deletions
+13
View File
@@ -67,6 +67,19 @@ ol.style.Style.prototype.createLiterals = function(feature) {
* @type {ol.style.Style}
*/
ol.style.Style.defaults = new ol.style.Style({
rules: [
new ol.style.Rule({
filter: 'renderIntent("select")',
symbolizers: [
new ol.style.Shape({
fill: new ol.style.Fill(ol.style.FillDefaultsSelect),
stroke: new ol.style.Stroke(ol.style.StrokeDefaultsSelect)
}),
new ol.style.Fill(ol.style.FillDefaultsSelect),
new ol.style.Stroke(ol.style.StrokeDefaultsSelect)
]
})
],
symbolizers: [
new ol.style.Shape({
fill: new ol.style.Fill(),