import React, { Fragment, useState, useEffect } from "react"; import ReactMapboxGl, { Layer, Source } from "react-mapbox-gl"; import { MAPBOX_ACCESS_TOKEN, IMAGE_COORDINATES } from "./config"; import "mapbox-gl/dist/mapbox-gl.css"; const Mapbox = ReactMapboxGl({ accessToken: MAPBOX_ACCESS_TOKEN, minZoom: 5, maxZoom: 10, hash: false }); function Map(props) { const [center, setCenter] = useState([35, 31.9]); const [zoom, setZoom] = useState([6.3]); return ( {props.images.map((img, i) => { const id = `radar-280-${i}`; return ( ); })} ); } export default Map;