Implementation of Track loading
Use leaflet-filelayer to load kml, gpx, geojson, json tracks and display them as new Overlay layer.
This commit is contained in:
parent
029bdad4ff
commit
936e5732b2
8 changed files with 134 additions and 5 deletions
|
|
@ -47,7 +47,11 @@ BR.LayersTab = BR.ControlLayers.extend({
|
|||
if (!self._layers[i].overlay || !map.hasLayer(self._layers[i].layer)) {
|
||||
continue;
|
||||
}
|
||||
self._layers[i].layer.setOpacity(opacity);
|
||||
if (self._layers[i].layer.setOpacity) {
|
||||
self._layers[i].layer.setOpacity(opacity);
|
||||
} else {
|
||||
self._layers[i].layer.setStyle({opacity:opacity});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue