Using a renderIntent lib function instead of this identifier

A 'this' identifier is quite useless with compressed JavaScript,
and in fact it turned out to fail in advanced mode when trying
to access a feature's renderIntent property with it. The added
renderIntent lib function as a Call expression does the job
well.
This commit is contained in:
ahocevar
2013-08-28 18:00:09 +02:00
parent 526dbebadc
commit 0fbf07fef1
7 changed files with 32 additions and 64 deletions

View File

@@ -25,7 +25,7 @@ var vector = new ol.layer.Vector({
style: new ol.style.Style({
rules: [
new ol.style.Rule({
filter: 'this.renderIntent == "selected"',
filter: 'renderIntent("selected")',
symbolizers: [
new ol.style.Fill({
color: '#ffffff',