Allow registration of custom functions for expressions

This commit is contained in:
Tim Schaub
2013-06-21 11:13:20 -06:00
parent 8e8b26805f
commit 233595ac75
4 changed files with 23 additions and 8 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ var style = new ol.style.Style({rules: [
}),
new ol.style.Text({
color: '#bada55',
text: new ol.Expression('label'),
text: ol.expression.parse('label'),
fontFamily: 'Calibri,sans-serif',
fontSize: 14
})