Use get(key) instead of getProperties()[key]
This commit is contained in:
1 parent
4b55175b7e
commit
81d0e9ea63
1 file changed
+1
-1
@@ -388,7 +388,7 @@ ol.format.KML.createFeatureStyleFunction_ = function(style, styleUrl,
|
||||
}
|
||||
|
||||
if (drawName) {
|
||||
name = /** @type {string} */ (this.getProperties()['name']);
|
||||
name = /** @type {string} */ (this.get('name'));
|
||||
drawName = drawName && name;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user