diff --git a/API.md b/API.md index b1c1d4c25..c228b08aa 100644 --- a/API.md +++ b/API.md @@ -38,6 +38,8 @@ of iD (e.g. `https://ideditor-release.netlify.app`), the following parameters ar _Example:_ `map=20.00/38.90085/-77.02271` * __`maprules`__ - A path to a [MapRules](https://github.com/radiant-maxar/maprules) service endpoint for enhanced tag validation.
_Example:_ `maprules=https://path/to/file.json` +* __`notes`__ - Enables the notes layer by default.
+ _Example:_ `notes=true` * __`offset`__ - Background imagery alignment offset in meters, formatted as `east,north`.
_Example:_ `offset=-10,5` * __`photo_overlay`__ - The street-level photo overlay layers to enable.
@@ -77,6 +79,7 @@ _Example:_ `https://www.openstreetmap.org/edit?editor=id#gpx=https://gist.github * __`hashtags`__ * __`locale`__ * __`maprules`__ +* __`notes`__ * __`offset`__ * __`photo`__ * __`photo_dates`__ diff --git a/modules/svg/notes.js b/modules/svg/notes.js index 8d2c6376e..ec7ee94c2 100644 --- a/modules/svg/notes.js +++ b/modules/svg/notes.js @@ -6,9 +6,11 @@ import { dispatch as d3_dispatch } from 'd3-dispatch'; import { modeBrowse } from '../modes/browse'; import { svgPointTransform } from './helpers'; import { services } from '../services'; +import { utilStringQs } from '../util'; +var hash = utilStringQs(window.location.hash); -var _notesEnabled = false; +var _notesEnabled = !!hash.notes; var _osmService;