Merge pull request #4376 from elemoine/kml-non-icon

Make KML format ignore image styles that aren't icons
This commit is contained in:
Éric Lemoine
2015-11-06 16:46:10 +01:00
2 changed files with 28 additions and 1 deletions

View File

@@ -2512,7 +2512,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) {