File tree 3 files changed +11
-2
lines changed 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Log of changes since the 1.1.0 version
4
4
5
+ #### 1.9.3
6
+
7
+ - Fetch OSM api with include_discussion=true and pass data to render function (#229 )
8
+
9
+ #### 1.9.2
10
+
11
+ - Fallback to overpass if the elements field of real-changesets is empty (#228 )
12
+
5
13
#### 1.9.1
6
14
7
15
- Fetch OSM API with json format (#226 )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import moment from 'moment';
2
2
import { config } from './config' ;
3
3
4
4
export function query ( changesetID ) {
5
- var url = `${ config . osmBase } changeset/${ changesetID } .json` ;
5
+ var url = `${ config . osmBase } changeset/${ changesetID } .json?include_discussion=true ` ;
6
6
var options = {
7
7
method : 'GET' ,
8
8
headers : { 'Content-Type' : 'application/json' }
@@ -19,6 +19,7 @@ export function query(changesetID) {
19
19
. subtract ( 1 , 'seconds' )
20
20
. format ( 'YYYY-MM-DDTHH:mm:ss\\Z' ) ,
21
21
to : cs . closed_at || null ,
22
+ comments : r . elements [ 0 ] . discussion || [ ] ,
22
23
bbox : {
23
24
left : cs . minlon || - 180 ,
24
25
bottom : cs . minlat || - 90 ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " changeset-map" ,
3
- "version" : " 1.9.2 " ,
3
+ "version" : " 1.9.3 " ,
4
4
"description" : " Provide visualization of changesets to OSMCha & to the OSM community" ,
5
5
"main" : " dist/bundle.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments