mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
Merge pull request #2522 from mapillary/mapillary_apiv2
upgrading to Mapillary API v2 calls
This commit is contained in:
@@ -102,9 +102,9 @@ iD.MapillaryLayer = function (context) {
|
||||
if (request)
|
||||
request.abort();
|
||||
|
||||
request = d3.json('https://mapillary-read-api.herokuapp.com/v1/s/search?min-lat=' +
|
||||
extent[0][1] + '&max-lat=' + extent[1][1] + '&min-lon=' +
|
||||
extent[0][0] + '&max-lon=' + extent[1][0] + '&max-results=100&geojson=true',
|
||||
request = d3.json('https://a.mapillary.com/v2/search/s/geojson?client_id=NzNRM2otQkR2SHJzaXJmNmdQWVQ0dzoxNjQ3MDY4ZTUxY2QzNGI2&min_lat=' +
|
||||
extent[0][1] + '&max_lat=' + extent[1][1] + '&min_lon=' +
|
||||
extent[0][0] + '&max_lon=' + extent[1][0] + '&max_results=100&geojson=true',
|
||||
function (error, data) {
|
||||
if (error) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user