77 Commits

Author SHA1 Message Date
Marwin Hochfelsner
fd96190b1e Improve wording of API documentation (#10767) 2025-02-12 21:40:21 +01:00
Kyℓe Hensel
6328776df1 Fix + symbol appearing in changeset comments from external tools (#10766) 2025-02-12 14:13:15 +01:00
Kyℓe Hensel
065b2e6d9e add queryString option to enable notes by default (#8042) 2025-01-15 11:29:23 +01:00
Emmanuel Ferdman
4ffc0bcd82 fix link to tag_classes.js reference (#10535) 2024-11-13 15:31:51 +01:00
Martin Raifer
b2b3009a64 .env oauth2 config: drop client secret; use URL if API_URL is empty 2024-07-05 16:15:47 +02:00
Nathan Hadley
3087b1a660 Fix typo (#10264) 2024-05-29 15:10:17 +02:00
Martin Raifer
342a03bcfe allow type/id syntax in id hash param, and add support for notes 2024-05-28 20:18:53 +02:00
danieldegroot2
9a794ccdfe Use preferred tile.osm.org URL in examples (#9979) 2023-11-13 21:37:06 +01:00
Martin Raifer
c4d1390270 use api.osm.org url for OSM API calls
see https://github.com/openstreetmap/operations/issues/951
2023-10-10 16:03:10 +02:00
riQQ
218d2efc03 Fix link to schema builder (#9567)
The error was introduced with e466ad4bf8 / #9546
2023-04-04 14:11:04 +02:00
archpdx
e466ad4bf8 Update dependencies country-coder and location-conflation (#9546) 2023-03-30 12:53:38 +02:00
Martin Raifer
45c746ef05 also make other CDNs and services configurable via env vars 2023-02-25 18:21:11 +01:00
Martin Raifer
050c164a60 make OSM API connection details configurable via env vars 2023-02-25 18:05:31 +01:00
Nikhil VJ
b5e2ea81a4 update params structure for OSM hosted iD (#9095)
* update params structure for OSM iD

update params structure for the iD editor hosted at openstreetmap.org/edit : have to keep the params after a # instead of ?

* working osm editor with-gpx-hash-param link

* update list of query/hash params on osm.org 

Some hash parameters are not supported on osm.org, while there are some query parameters which work slightly differently when used on osm.org 
See 66656e1d1d/app/assets/javascripts/edit/id.js.erb

This should accurately the currently state of the iD integration in the openstreetmap-website (aka as the rails port).

Co-authored-by: Martin Raifer <martin@raifer.tech>
2022-06-14 21:21:02 +02:00
Tobias
f2a1cffc03 API.md: Update broken link about presets schema (#8842)
This updates a broken link to `https://github.com/openstreetmap/iD/tree/master/data/presets#custom-presets` to link to the schema-builder project. The link was introduced 5 years ago a7cba6a694/API.md (L251-L252). The old v3-prototype branch still has the content https://github.com/openstreetmap/iD/tree/v3-prototype/data/presets#custom-presets which is an older version of the schema builder docs.
2021-12-07 12:19:06 +01:00
Martin Raifer
25d4ff100f rename all openstreetcam references to kartaview
closes #8807
2021-11-16 17:42:53 +01:00
zstadler
651d358416 Update API.md
The documentation for the `background` URL parameter](https://github.com/openstreetmap/iD/blob/develop/API.md#url-parameters) says:

> * __`background`__ - The value from a `sourcetag` property in iD's  [imagery list](https://github.com/openstreetmap/iD/blob/develop/data/imagery.json),  or a custom tile URL.

However, none of the sources in iD's  [imagery list](https://github.com/openstreetmap/iD/blob/develop/data/imagery.json?raw=true) does not have a `sourcetag` property.

In fact, iD is actually using the value of the `id` property.
For example: [https://www.openstreetmap.org/edit?editor=id&background=Mapbox](https://www.openstreetmap.org/edit?editor=id&background=Mapbox), based on
```
  {
    "id": "Mapbox",
    "name": "Mapbox Satellite",
    "type": "tms",
    "template": "https://{switch:a,b,c,d}.tiles.mapbox.com/v4/mapbox.satellite/{zoom}/{x}/{y}@2x.jpg?access_token=pk.eyJ1Ijoib3BlbnN0cmVldG1hcCIsImEiOiJja2w5YWt5bnYwNjZmMnFwZjhtbHk1MnA1In0.eq2aumBK6JuRoIuBMm6Gew",
    "tileSize": 512,
    "zoomExtent": [0, 22],
    "terms_url": "https://www.mapbox.com/about/maps",
    "terms_text": "Terms & Feedback",
    "default": true,
    "description": "Satellite and aerial imagery.",
    "icon": "https://osmlab.github.io/editor-layer-index/sources/world/MapBoxSatellite.png"
  },
```
2021-10-25 11:26:55 +03:00
Bryan Housel
abde015288 Allow validation severity to be overridden with url params 2020-12-10 15:40:58 -05:00
Quincy Morgan
db12fc5f57 Depend on id-tagging-schema for presets 2020-11-06 10:38:43 -05:00
Quincy Morgan
081db7c7a6 Support filtering by multiple photo usernames 2020-10-19 16:27:07 -04:00
Quincy Morgan
893629da4f Combine fromDate and toDate parameters into single photo_dates parameter
Rename `username` parameter to `photo_username`
Add API documentation of photo filter parameters
2020-10-19 15:43:25 -04:00
Quincy Morgan
2fa64e7445 Switch from hyphen to slash for photo parameter separator (re: #6398) 2020-10-04 20:17:44 -04:00
Quincy Morgan
ad54a6e140 Support opening iD with a Streetside or OpenStreetCam photo specified as a URL parameter (close #6398)
Bring the APIs for the three street level services closer in sync
2020-10-02 13:30:36 -04:00
Quincy Morgan
16325740f0 Update links to release mirror (re: #7822) 2020-09-28 16:49:59 -04:00
Quincy Morgan
1969e6ef68 Update API documentation for multiple locale values (re: #7996) 2020-09-15 18:14:57 -04:00
Peter Newman
4205ca1d07 Fix the seemingly safe spellings found by codespell
Untested, only checked by inspection.

(cherry picked from commit 2c47a11008)
2020-08-10 17:32:37 +01:00
Quincy Morgan
a1af118f0e Ensure locales and presets are loaded before the UI loads (close #7406)
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan
d669bbef2a Update various files for removal of master branch 2020-03-23 10:43:52 -07:00
Bryan Housel
919687d2cf Replace legacy names still used in tests, remove the legacy exports 2020-02-21 23:12:25 -05:00
Bryan Housel
3c6ba9703a presetIndex.build -> presetIndex.merge, and make it merge data 2020-02-05 21:13:15 -05:00
Bryan Housel
3ac800c619 Script has moved 2020-01-28 15:01:40 -05:00
Matias Volpe
8e616d7384 feat: add Mapillary Map Features layer 2019-08-22 15:16:31 -03:00
Quincy Morgan
2ad2bac931 Limit addable presets via comma-separated IDs in the presets URL parameter (close #6553) 2019-06-24 12:38:32 -04:00
Quincy Morgan
854eacdc7e Add feature filters for pistes and aerialways 2019-05-22 10:38:04 -04:00
Tobias Jordans
35a2301ea3 Add filter building:part and indoor
- Extract the building:part from the building filter into it's own filter
- Add indoor filtering
- Update api doc
2019-05-12 19:31:23 +02:00
Quincy Morgan
57a91da995 Document photo_overlay query parameter
Alphabetize query parameters in API documentation
2019-03-14 17:06:15 -04:00
Bryan Housel
297027db04 Fix misspelling 2019-03-03 22:24:03 -05:00
Tobias
b6b0026254 Clarify API.md description for locale param
- Highlight the different URL param-patterns (hash vs. regular)
- Add an example with regional locale `en-US`
- Add `locale` param to the list of osm-website-params with a bit more info about the different default-behavior there

This is a follow up to https://github.com/openstreetmap/iD/pull/5650 and based on the feedback in https://github.com/openstreetmap/iD/issues/5988.
2019-03-03 16:26:19 +01:00
Bryan Housel
71b2d2c6b7 Upgrade legacy symbols in tests
- iD.Context -> iD.coreContext
- iD.Graph -> iD.coreGraph
- iD.Node -> iD.osmNode
- iD.Way -> iD.osmWay
- iD.Relation -> iD.osmRelation
2019-01-30 15:43:02 -05:00
Bryan Housel
a873c0f2ca Remove unused, add maprules documentation 2019-01-23 11:08:19 -05:00
Quincy Morgan
07327eb9c7 Added documentation for the locale URL parameter (re: #5650) 2019-01-22 15:41:00 -05:00
Bryan Housel
2fa593421f Rename scaleExtent to zoomExtent, slightly simplify getTiles() 2018-07-22 01:15:44 -04:00
Bryan Housel
92169759eb Fix API docs for max zoom, defaults to 22
(this was bumped to 22 in 475db33b3f)
2018-05-25 12:10:53 -04:00
Bryan Housel
61c7f64077 Remember changeset source, make it settable via url param
(closes #4899)
2018-03-16 09:20:32 -04:00
James Kingdom
73f78c3622 Revert max nodes to 50k 2018-02-12 19:54:19 +00:00
James Kingdom
aa3b4882de Change max nodes per request
(closes #4793)
2018-02-12 19:28:17 +00:00
Bryan Housel
469df0b059 Change features to disable_features querystring, add init() 2017-10-22 12:00:51 -06:00
Nikita Mashukov
718383d05c features api parameter description is added 📝 2017-10-16 00:14:08 +07:00
Bryan Housel
a42aa789e9 Add hashtags API parameter and localStorage
(closes #2834)
2017-08-16 10:47:17 -04:00
Bryan Housel
6ca649498f Add walkthrough=true url parameter to auto-start the walkthrough
(closes #4111)
2017-06-22 22:26:38 -04:00