Luzifer / staticmap

Webserver to generate static maps from OpenStreetMap tiles
Apache License 2.0
10 stars 5 forks source link

A tiny setup question #1

Closed Jason-Guo1999 closed 1 year ago

Jason-Guo1999 commented 1 year ago

Hi Luzifer, I'm truly impressed with your work. However, I've encountered an issue while running the 0.5.0 release. I tried sending the JSON file from the example as a part of a GET request to the service's URL, but I keep receiving a 404 error code. Have you come across this issue before? Any guidance would be greatly appreciated. Thank you for your time and assistance.

Luzifer commented 1 year ago
Jason-Guo1999 commented 1 year ago

So the 404 error code is generated by illegal requests? I'm wondering if I correctly run the service. Could you please give me more details about it? Thank you for your time and assistance.

Luzifer commented 1 year ago

Sounds more like you've sent an request to something else than /map.png or /status. Those are the only supported paths.

Jason-Guo1999 commented 1 year ago

Thanks I've figured the GET out .However It reports this when I sending the JSON file from the example as a part of a POST request to /map.png: 2023/10/14 19:10:53 Error downloading tile file: error 404: tile not found time="2023-10-14T19:10:53Z" level=error msg="Map render failed: error 404: tile not found (Request: /map.png)"

Luzifer commented 1 year ago

That error was caused by the OpenFireMap not serving blank tiles for tiles without data but returning HTTP 404 for those. I've updated the generator library which gained a workaround for this behavior in the meantime. A new release will be available shortly.