Because tile.openstreetmap.org is blocked here, I want to change the map provider. I cloned the code and modified one of the links. I tried several links, and they all worked fine when loading the web page, but after generating the webxdc and opening it in DeltaChat, the map does not display. Why is that ?Does anyone know how to fix this?
Refused to load the image 'https://a.tile.openstreetmap.de/3/3/3.png' because it violates the following Content Security Policy directive: "img-src 'self' data: blob:".
normal .xdc are not allowed to access the internet at all. we consider to add an option to replace the .xdc in the near future (which is obviously a great feature!) - but we’re not there
Now there is a question, if I compile an Android client myself, is there a similar problem to deal with? I did a simple search and found no similar code.Can you give me one more hint?
When I modified the maps.xdc file (replaced the map link), before running npm run build again, I executed npm run clean. However, after compiling the resulting .exe file, when I opened the map, it still showed the previous xdc effect. What’s more puzzling is that when I opened a second account, the map was still from openstreetmap.org. I find this quite strange; what could be the reason?
I encountered a similar issue on the Android client as well. Although I successfully compiled the APK, it appears that the modified maps.xdc file was not being utilized.
When I logged in with a brand new account (the phenomenon is the same on both the Android client and the desktop client), I finally used the latest modified maps.xdc file. I suspect that the maps.xdc might be cached on the mail server. Is this correct? If so, how can I clear the cache to ensure it uses the new maps.xdc file?
After deleting my Profile, I was able to use the new version of maps.xdc, as shown below. However, this also resulted in the loss of my previous keys and chat history. While the impact seems minimal at present, it would be preferable if there were a more precise way to utilize the new maps.xdc without affecting other information associated with the account.
I have found a solution. First, backup the current account, then replace the maps.xdc within the backed up tar file. After that, delete the account, and finally import the backup. This perfectly resolves the issue.
@r10s
It appears that this could be a viable approach for users to employ their own modified version of maps.xdc with the current DeltaChat version. On the desktop version, there may be DNS issues that require recompiling the executable file; however, on mobile devices, it seems that the changes can be implemented immediately.
Thank you. So I realized why I had emptied all the local caches before, but it still didn’t work. Because after I emptied, I imported my backup, and there was maps. Xdc in the backup, which made me a little embarrassed, hahaha.