Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map Tiles Downloader no longer loading map screen #32

Open
crawl55 opened this issue Jan 31, 2023 · 9 comments
Open

Map Tiles Downloader no longer loading map screen #32

crawl55 opened this issue Jan 31, 2023 · 9 comments

Comments

@crawl55
Copy link

crawl55 commented Jan 31, 2023

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'

@sgooding
Copy link

sgooding commented Feb 1, 2023

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

@islandtriumph96
Copy link

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
Copy link

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
Copy link

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

@khatkhuong
Copy link

@islandtriumph96 Can you explain in details?

@avanmalleghem
Copy link

@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.

@elliottetzkorn
Copy link

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

@xumaxie
Copy link

xumaxie commented Jun 5, 2023

我解决了该问题,我在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 即可。

@muddatrukka
Copy link

MapBox requires a credit card even for free use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants