Use exampleNS.strToBase64 in kml example

This commit is contained in:
Éric Lemoine
2014-06-25 14:20:06 +02:00
parent 7fb3e5842d
commit fba89275d8

View File

@@ -76,7 +76,7 @@ if ('download' in exportKMLElement) {
var node = new ol.format.KML().writeFeatures(features);
var string = new XMLSerializer().serializeToString(
/** @type {Node} */ (node));
var base64 = window.btoa(string);
var base64 = exampleNS.strToBase64(string);
exportKMLElement.href =
'data:application/vnd.google-earth.kml+xml;base64,' + base64;
}