Cleanup vector-labels example

This commit is contained in:
Frederic Junod
2014-06-24 16:45:58 +02:00
parent e5b9098965
commit a6d059649f

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 = '';