Implementing renderIntent handling

This commit is contained in:
ahocevar
2013-08-20 23:29:44 +02:00
parent 4f2d37b6a3
commit 3a50a754aa
7 changed files with 87 additions and 10 deletions

View File

@@ -9,6 +9,7 @@ goog.require('ol.parser.ogc.GML_v3');
goog.require('ol.source.MapQuestOpenAerial');
goog.require('ol.source.Vector');
goog.require('ol.style.Fill');
goog.require('ol.style.Rule');
goog.require('ol.style.Stroke');
goog.require('ol.style.Style');
@@ -22,6 +23,17 @@ var vector = new ol.layer.Vector({
url: 'data/gml/topp-states-wfs.xml'
}),
style: new ol.style.Style({
rules: [
new ol.style.Rule({
filter: 'this.renderIntent == "selected"',
symbolizers: [
new ol.style.Fill({
color: '#ffffff',
opacity: 0.5
})
]
})
],
symbolizers: [
new ol.style.Fill({
color: '#ffffff',