ADSB/AIS image proxy
This commit is contained in:
@@ -90,5 +90,5 @@ export async function getAIS() {
|
|||||||
|
|
||||||
export function getAISImage(mmsi) {
|
export function getAISImage(mmsi) {
|
||||||
return fetch(`https://www.marinetraffic.com/getAssetDefaultPhoto/?photo_size=800&asset_type_id=0&asset_id=${mmsi}`)
|
return fetch(`https://www.marinetraffic.com/getAssetDefaultPhoto/?photo_size=800&asset_type_id=0&asset_id=${mmsi}`)
|
||||||
.then(resp => resp.ok ? resp.blob() : null);
|
.then(resp => resp.blob());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user