Skip to content

Commit

Permalink
Decode url for proxy also on layers without tiles
Browse files Browse the repository at this point in the history
fixes #164
  • Loading branch information
raitisbe committed Mar 14, 2019
1 parent 4ef7827 commit dc1c455
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/map/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ define(['angular', 'app', 'permalink', 'ol'], function (angular, app, permalink,
});
} else {
lyr.getSource().setImageLoadFunction(function (image, src) {
if (src.indexOf('proxy') == -1) src = decodeURIComponent(src);
image.getImage().src = utils.proxify(src); //Previously urlDecodeComponent was called on src, but it breaks in firefox.
})
}
Expand Down

0 comments on commit dc1c455

Please sign in to comment.