Use get(key) instead of getProperties()[key]

This commit is contained in:
Frederic Junod
2016-02-23 15:51:13 +01:00
parent 4b55175b7e
commit 81d0e9ea63

View File

@@ -388,7 +388,7 @@ ol.format.KML.createFeatureStyleFunction_ = function(style, styleUrl,
} }
if (drawName) { if (drawName) {
name = /** @type {string} */ (this.getProperties()['name']); name = /** @type {string} */ (this.get('name'));
drawName = drawName && name; drawName = drawName && name;
} }