Remove unnecessary type cast
This commit is contained in:
committed by
Guillaume Beraudo
parent
da2a291208
commit
4a21ad566a
@@ -63,7 +63,7 @@ map.on('click', function(evt) {
|
||||
|
||||
var exportKMLElement = document.getElementById('export-kml');
|
||||
if ('download' in exportKMLElement) {
|
||||
var vectorSource = /** @type {ol.source.Vector} */ (vector.getSource());
|
||||
var vectorSource = vector.getSource();
|
||||
exportKMLElement.addEventListener('click', function(e) {
|
||||
if (!exportKMLElement.href) {
|
||||
var features = [];
|
||||
|
||||
Reference in New Issue
Block a user