Skip to content

Commit

Permalink
Mapillary v4 (#236)
Browse files Browse the repository at this point in the history
* Switch to Mapillary API v4

* Use RapiD access token

* Update detection geometry conversion

* Remove debugging code

* Remove old localization file

* Fix dependency order in package.json

* Remove unused map feature title
  • Loading branch information
nickplesha authored Jun 21, 2021
1 parent 1b8296b commit 4f67355
Show file tree
Hide file tree
Showing 11 changed files with 349 additions and 422 deletions.
20 changes: 13 additions & 7 deletions css/60_photos.css
Original file line number Diff line number Diff line change
Expand Up @@ -305,17 +305,23 @@ label.streetside-hires {
top: -25px;
}

.mly-wrapper .AttributionContainer .AttributionIconContainer .AttributionMapillaryLogo {
margin-top: 3px;
.mly-wrapper .mapillary-attribution-container {
display: flex;
align-items: center;
}

.mly-wrapper .AttributionContainer .AttributionImageContainer {
color: #fff;
font-size: 10px;
font-weight: 300;
overflow: hidden;
.mly-wrapper .mapillary-attribution-container .mapillary-attribution-icon-container {
display: flex;
align-items: center;
}

.mly-wrapper .mapillary-attribution-container .mapillary-attribution-username {
display: none;
}

.mly-wrapper .mapillary-attribution-container .mapillary-attribution-date {
margin-right: 6px;
}

/* OpenStreetCam viewer */
.osc-wrapper {
Expand Down
2 changes: 1 addition & 1 deletion modules/renderer/photos.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function rendererPhotos(context) {
};

photos.shouldFilterByUsername = function() {
return showsLayer('mapillary') || showsLayer('openstreetcam') || showsLayer('streetside');
return !showsLayer('mapillary') && showsLayer('openstreetcam') && !showsLayer('streetside');
};

photos.showsPhotoType = function(val) {
Expand Down
Loading

0 comments on commit 4f67355

Please sign in to comment.