Мне нужна помощь в решении проблемы, с которой я столкнулся, используя Webpack с React-sheetlet, когда я хочу загрузить плитки моей карты, я получаю это сообщение об ошибке для каждой плитки
GET http://localhost:9080/home/drigtime/Documents/electron-webpack-quick-start/static/tiles/amakna/3/11/6.jpg 404 (Not Found)
Вот мой код компонента:
class MapComponent extends Component {
state = {
crs: L.CRS.Simple,
hightLight: [],
lat: -250,
lng: 425,
markers: [],
maxZoom: 4,
minZoom: 0,
zoom: 3
};
render() {
const { lat, lng, zoom, crs, maxZoom, minZoom } = this.state;
const position = [lat, lng];
return (
<Map
center={position}
zoom={zoom}
maxZoom={maxZoom}
minZoom={minZoom}
crs={crs}
>
<MapCoord />
<MapArea />
<HightLight />
<TileLayer url={join(__static, "./tiles/amakna/{z}/{x}/{y}.jpg")} />
</Map>
);
}
}
Я делаю что-то неправильно ? Как я могу загрузить свои фрагменты карты в среду разработки?
Вот репо моего проекта https://github.com/Drigtime/owltouch/tree/beta