From 67a1524062f1fc2e45a9f35dbb582e072315ef9e Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Tue, 15 Oct 2019 23:34:54 +0300 Subject: Initial fetchImages() implementation doesn't work due to CORS --- src/Geshem.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/Geshem.js') diff --git a/src/Geshem.js b/src/Geshem.js index e272e3a..c2b6e6e 100644 --- a/src/Geshem.js +++ b/src/Geshem.js @@ -9,9 +9,6 @@ import Map from './Map' import './Geshem.css'; import 'rc-slider/assets/index.css'; - -const IMGS_BASE_URL = 'https://imgs.geshem.space/' - function App() { return ( @@ -100,7 +97,6 @@ class OldGeshem extends Component { loadRadarData() { axios({ - url: IMGS_BASE_URL + 'imgs.json', method: 'get', }).then((res) => { this.setState({ @@ -117,7 +113,7 @@ class OldGeshem extends Component { addRadarSource(res, i, url) { this.map.addSource(`radar-${res}-${i}`, { type: 'image', - url: IMGS_BASE_URL + url, + // url: IMGS_BASE_URL + url, coordinates: this.state.rasterCoords[res] }) } -- cgit v1.3.1