Add OpenStreetMap Notes Layer (#458)
* use a local variable (best practices) * Add OpenStreetMap notes as overlay. This commit adds a new layer which renders OpenStreetMap notes in the current view. The layer can be activated via the "More" button in the layers sidebar. Fixes #439
This commit is contained in:
parent
5ec72901f1
commit
492797f2a5
8 changed files with 54 additions and 2 deletions
|
|
@ -118,6 +118,8 @@ BR.Layers = L.Class.extend({
|
|||
|
||||
if (dataSource === 'OverpassAPI') {
|
||||
layer = this._layersControl.layersConfig.createOverpassLayer(layerUrl);
|
||||
} else if (dataSource === 'OpenStreetMapNotesAPI') {
|
||||
layer = this._layersControl.layersConfig.createOpenStreetMapNotesLayer();
|
||||
} else {
|
||||
layer = L.tileLayer(layerUrl);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue