Make KML format ignore image styles that aren't icons

This commit is contained in:
Éric Lemoine
2015-11-04 16:07:29 +01:00
parent 3254e08785
commit daa970fe4c
2 changed files with 28 additions and 1 deletions

View File

@@ -2509,7 +2509,7 @@ ol.format.KML.writeStyle_ = function(node, style, objectStack) {
var strokeStyle = style.getStroke();
var imageStyle = style.getImage();
var textStyle = style.getText();
if (imageStyle) {
if (imageStyle instanceof ol.style.Icon) {
properties['IconStyle'] = imageStyle;
}
if (textStyle) {