feat: clicking on location map now opens in openstreetmap

This commit is contained in:
David Ralph 2021-09-07 19:10:04 +01:00
parent 22ef3ad139
commit b86e73f2fc
1 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,9 @@ export default function PhotoInformation({ info, url, api }) {
const tile = `https://a.tile.openstreetmap.org/12/${lon}/${lat}.png`;
return (
<img src={ddgProxy ? window.constants.DDG_IMAGE_PROXY + tile : tile} alt='location' draggable={false}/>
<a href={`https://www.openstreetmap.org/?mlat=${info.latitude}&mlon=${info.longitude}`}>
<img src={ddgProxy ? window.constants.DDG_IMAGE_PROXY + tile : tile} alt='location' draggable={false}/>
</a>
);
}