MapTilesDownloader icon indicating copy to clipboard operation
MapTilesDownloader copied to clipboard

Map Tiles Downloader no longer loading map screen

Open crawl55 opened this issue 2 years ago • 11 comments

When loading the app, the map screen allowing you to select a geographical area no longer works. The following is displayed in the CMD prompt.

127.0.0.1 - - [30/Jan/2023 19:14:04] "GET / HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:04] "GET /materialize/css/materialize.min.css HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:04] "GET /fonts/fonts.css HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:04] "GET /style.css HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:04] "GET /jquery.min.js HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:04] "GET /mapbox-gl-draw-rectangle-mode.min.js HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:04] "GET /async.min.js HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:04] "GET /turf.min.js HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:05] "GET /materialize/js/materialize.min.js HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:05] "GET /main.js HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:05] "GET /fonts/open-sans-v15-latin-700.woff2 HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:05] "GET /fonts/open-sans-v15-latin-600.woff2 HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:05] "GET /fonts/open-sans-v15-latin-regular.woff2 HTTP/1.1" 200 - 127.0.0.1 - - [30/Jan/2023 19:14:05] "GET /favicon.ico HTTP/1.1" 200 -

Exception occurred during processing of request from ('127.0.0.1', 50470) Traceback (most recent call last): File "C:\Users\alanr\AppData\Local\Programs\Python\Python311\Lib\socketserver.py", line 691, in process_request_thread self.finish_request(request, client_address) File "C:\Users\alanr\AppData\Local\Programs\Python\Python311\Lib\socketserver.py", line 361, in finish_request self.RequestHandlerClass(request, client_address, self) File "C:\Users\alanr\AppData\Local\Programs\Python\Python311\Lib\socketserver.py", line 755, in init self.handle() File "C:\Users\alanr\AppData\Local\Programs\Python\Python311\Lib\http\server.py", line 432, in handle self.handle_one_request() File "C:\Users\alanr\AppData\Local\Programs\Python\Python311\Lib\http\server.py", line 420, in handle_one_request method() File "C:\Users\alanr\Desktop\MapTilesDownloade\src\server.py", line 219, in do_GET with open(file, "rb") as f: ^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: './UI/favicon.ico'

crawl55 avatar Jan 31 '23 03:01 crawl55

I, also, get the same error in the docker version.

sgooding avatar Feb 01 '23 17:02 sgooding

I cant load the map either anymore. bummer this was probably my favorite script on here. I am wondering about the favicon bit actually I remember researching about converting to geotiff from mbtfiles and remember seeing favicon as a company

islandtriumph96 avatar Feb 05 '23 23:02 islandtriumph96

all I can think of is that mapbox changed its API recently and its not able to find the favicon. because in the UI folder locally there's no favicon.ico

islandtriumph96 avatar Feb 05 '23 23:02 islandtriumph96

disregard I found out that he rotated his access token. I made an account and put in my token in main.js and now it loads just fine

islandtriumph96 avatar Feb 06 '23 05:02 islandtriumph96

@islandtriumph96 Can you explain in details?

khatkhuong avatar Feb 13 '23 08:02 khatkhuong

@khatkhuong

  1. Create an account on mapbox : https://www.mapbox.com/mapbox-gljs . You will get a default key.
  2. Replace the key in "main.js" file by your key.

avanmalleghem avatar Feb 17 '23 20:02 avanmalleghem

I am having the same issue. I can get the server up and running, but nothing shows on the browser.

elliottetzkorn avatar Mar 08 '23 11:03 elliottetzkorn

我解决了该问题,我在windows环境下使用Docker来下载影像。

  1. 首先,在MapTilesDownloader-master\src\UI\main.js中设置自己的mapbox的key,
  2. 使用作者给的Dockerfile自建docker image(因为如果执行作者给的Docker,则使用的是作者的image我们本地修改的key并不能生效)因此需要执行docker build -t 镜像名字xx .
  3. 之后执行作者给的docker命令,我们在windows下需要修改为docker run -v "%cd%"/output:/app/output/ -p 8080:8080 -it 镜像名字xx 即可。

xumaxie avatar Jun 05 '23 08:06 xumaxie

MapBox requires a credit card even for free use.

muddatrukka avatar Jun 07 '23 06:06 muddatrukka

rip

Waffle1434 avatar Aug 16 '24 18:08 Waffle1434