-
Notifications
You must be signed in to change notification settings - Fork 66
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
[BUG] The map is not displaying #943
Comments
I noticed that https://unpkg.com/ is duplicated in the script-src section. Was that intentional? 👀
|
No it's not intentional 😅 I probably forgot to do a proper In dev mode, we load raster tiles from openstreetmap to compare the them with the raster tiles. Therefore, we must add the following url to the CSP directive: |
Done in #944! |
@YongGoose I think it would make sense to include the https://tile.openstreetmap.org url in this PR (see the console error in your last screenshot). |
Good catch! |
Unfortunately, the error has been resolved, but the map still doesn't display 🥲
Could I ask if you have any suggestions for resolving this issue? PS. Once the issue is resolved, if the same problem comes up on the mailing list or an issue is raised, I'll actively participate in the community to help! |
Yes, I will try to have a look tonight. |
I’m not exactly sure why, but the map is suddenly visible.
However, to work on the issue below, I believe one more task is needed. To achieve this, I need to view other countries as well, but at the moment, only
If there’s anything additional I need to do or any JavaScript files I should modify, please let me know! |
@YongGoose you can import other countries by changing the url in the config file. incubator-baremaps/basemap/config.js Line 20 in 6cae7e0
As you may guess, generating vector tiles for the Planet OSM requires 2-3 TBs of fast data storage (NVMe SSDs). I used to have a Hetzner server for this, but I'm currently looking for another solution. |
Thank you! When you have some time, could you kindly take a look at the comments below? |
It looks like an exception occurred because the To resolve this, try running the command:
to create the table, and then run below command again.
Following the documentation(basemap' README) step by step should help you complete the process without any issues. PS. If you have any additional questions, please feel free to post them in this issue or on the There are plenty of issues where you can contribute to |
@bruno-scorzafave We should probably make it simpler for new commers to setup the environment and display the map for the first time. Let us know if you have suggestions. |
It can be a good improvement to inform the user to run |
@bchapuis I would suggest to put everything you need to setup the environment in the same page. |
The error message explains that authentication failed in the In my case, I ran the following command using
Looking at the code below, you can see that both the
If another error occurs, it would be helpful to share the entire process, including the exact command you used. 🙂 |
To setup the environment I installed Postgresql 17 but I had already Postgresql 16 which caused them both to use the same port making the authentication fail. But after removing Postgres 16 and running the create command before import everything worked. Thank you a lot! |
Glad to hear the issue has been resolved. 🙂 Looking forward to your fantastic work. |
@bruno-scorzafave Good point. In the following page, all the information regarding the environment are included at the beginning. Are you refering to this page or to another one? https://baremaps.apache.org/documentation/getting-started/ Glad you have been able to setup the environment. |
It seems like the comment is suggesting adding the README for basemap to the getting-started document.
This comment can serve as a good reference. If my interpretation is correct, it might be a good idea for @bruno-scorzafave to take on this task. Both of you, what do you think? |
I see, we should probably put a pointer to the getting started instead of having partial information. A PR is always welcome 🚀 |
Description
The map is not displaying on
localhost:9000
.However, I can't find any issues in the Chrome developer tools or the terminal.
Environment
Steps to Reproduce
baremaps map serve --tileset tileset.js --style style.js
Expected vs Actual Behavior
Attachments (Optional)
Chrome developer tools/console
Chrome developer tools/networks
Additional issue (lower priority than the one mentioned above).
Additionally, it seems that a
CSP
issue occurs when running with the command below.However, it works fine with the command below. And the vector tiles are also loading correctly. 🤔
The text was updated successfully, but these errors were encountered: