mirror of https://github.com/mue/mue.git
feat: clicking on location map now opens in openstreetmap
This commit is contained in:
parent
22ef3ad139
commit
b86e73f2fc
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue