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
|
|
@ -220,6 +220,10 @@ BR.confLayers.getPropertyOverrides = function() {
|
|||
'nameShort': 'Mapillary',
|
||||
'mapUrl': 'https://www.mapillary.com/app/?lat={lat}&lng={lon}&z={zoom}&menu=false'
|
||||
},
|
||||
'osm-notes': {
|
||||
'nameShort': 'OSM Notes',
|
||||
'mapUrl': 'https://www.openstreetmap.org/#map={zoom}/{lat}/{lon}&layers=N'
|
||||
},
|
||||
'openpt_map': {
|
||||
'nameShort': 'openptmap',
|
||||
'mapUrl': 'http://openptmap.org/?zoom={zoom}&lat={lat}&lon={lon}&layers=B0000TFT'
|
||||
|
|
|
|||
|
|
@ -72,7 +72,8 @@ BR.confLayers.tree = {
|
|||
'Waymarked_Trails-Cycling',
|
||||
'Waymarked_Trails-Hiking',
|
||||
'Waymarked_Trails-MTB',
|
||||
'mapillary-coverage-raster'
|
||||
'mapillary-coverage-raster',
|
||||
'osm-notes'
|
||||
],
|
||||
'country': [
|
||||
'historic-place-contours',
|
||||
|
|
|
|||
14
layers/extra/osm-notes.geojson
Normal file
14
layers/extra/osm-notes.geojson
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"geometry": null,
|
||||
"properties": {
|
||||
"attribution": {
|
||||
"text": "© OpenStreetMap contributors",
|
||||
"url": "https://www.openstreetmap.org/"
|
||||
},
|
||||
"id": "osm-notes",
|
||||
"name": "OpenStreetMap Notes",
|
||||
"overlay": true,
|
||||
"dataSource": "OpenStreetMapNotesAPI"
|
||||
},
|
||||
"type": "Feature"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue