Merge pull request #2241 from fredj/misc

Cleanup vector-labels example
This commit is contained in:
Frédéric Junod
2014-06-24 23:11:10 +02:00

View File

@@ -63,7 +63,7 @@ var myDom = {
var getText = function(feature, resolution, dom) {
var type = dom.text.value;
var maxResolution = dom.maxreso.value;
var text = feature.getProperties().name;
var text = feature.get('name');
if (resolution > maxResolution) {
text = '';