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