diff --git a/js/id/renderer/mapillary_image_layer.js b/js/id/renderer/mapillary_image_layer.js index 86c429820..8fae6f0ef 100644 --- a/js/id/renderer/mapillary_image_layer.js +++ b/js/id/renderer/mapillary_image_layer.js @@ -1,6 +1,5 @@ iD.MapillaryImageLayer = function (context) { - var roundedProjection = iD.svg.RoundProjection(context.projection), - urlSearch = 'https://a.mapillary.com/v2/search/s/geojson', + var urlSearch = 'https://a.mapillary.com/v2/search/s/geojson', urlImage = 'https://www.mapillary.com/map/im/', urlThumb = 'https://d1cuyjsrcm0gby.cloudfront.net/', clientId = 'NzNRM2otQkR2SHJzaXJmNmdQWVQ0dzo1ZWYyMmYwNjdmNDdlNmVi', @@ -34,7 +33,7 @@ iD.MapillaryImageLayer = function (context) { } function transform(d) { - var t = iD.svg.PointTransform(roundedProjection)(d); + var t = iD.svg.PointTransform(context.projection)(d); if (d.ca) t += ' rotate(' + Math.floor(d.ca) + ',0,0)'; return t; } diff --git a/js/id/renderer/mapillary_sign_layer.js b/js/id/renderer/mapillary_sign_layer.js index 255622939..fffeb9ea0 100644 --- a/js/id/renderer/mapillary_sign_layer.js +++ b/js/id/renderer/mapillary_sign_layer.js @@ -1,6 +1,5 @@ iD.MapillarySignLayer = function(context) { - var roundedProjection = iD.svg.RoundProjection(context.projection), - urlSearch = 'https://a.mapillary.com/v2/search/im/geojson/or', + var urlSearch = 'https://a.mapillary.com/v2/search/im/geojson/or', urlImage = 'http://mapillary.com/map/im/', urlThumb = 'https://d1cuyjsrcm0gby.cloudfront.net/', clientId = 'NzNRM2otQkR2SHJzaXJmNmdQWVQ0dzo1ZWYyMmYwNjdmNDdlNmVi', @@ -150,7 +149,7 @@ iD.MapillarySignLayer = function(context) { }); foreignObjects - .attr('transform', iD.svg.PointTransform(roundedProjection)); + .attr('transform', iD.svg.PointTransform(context.projection)); foreignObjects.exit() .remove();