Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to use custom image as map chart background for Qlik Cloud. I have whitelisted the 3rd party website URL under "Content Security Policy," but the map chart still comes up blank.
Thank you!
Hello @yjin,
I think natively this is not supported. The only as close as possible functionality that I was able to find is "Auto-zoom". You can go to Map settings and uncheck the "Auto-zoom" option. After that you can set the default view to where you want it to be. However, it might not cover the exact use case scenario that you need. In this case, you can submit a feature request [1] and elaborate in details as to why this is going to be beneficial for you and for other users.
---
Hello @yjin, could you please check with the developer tools on your browser if there is any kind of error? If so, could you please attach a screenshot? Thank you!
Hi @Patricia_Silva , there's no error on FireFox (but the Network tab also doesn't show Qlik is requesting any URL from upload.wikimedia.org). I got the following error on Chrome when opening the page containing map chart with background image directly.
Ok, after deleted and redid the map chart, I found the problem isn't the image wasn't loaded into Qlik. The problem is I used "User defined projection (meters)" and the image went to an unknown/invisible region. That brought me 2 other questions:
Thanks!
Hello @yjin,
The suggestion that @Patricia_Silva has provided is very important as it will help you identify if the URL was properly whitelisted. I can see that you have already confirmed that the issue is not because the image is not loaded but because the zoom level is wrong. Allow me to elaborate in detail to the questions that you have raised initially:
Now in your particular use case scenario, as you have also already confirmed, the issue is not related to image failing to load, but due to zoom level being super far. This can also be seen from the Scale bar that will show you "1000km" and if you zoom all the way in, you will notice that the image is actually visible. Under "Appearance > Presentation > Limit zoom levels", you can check the switch option and limit the zoom to 17 - 20. This should show you the image that you have specified.
I hope that this information was helpful.
---
Thanks for explanation and link, those will be helpful as I move to use advanced features in the future. I think the problem with user defined meter projection is user has natural inclination of use 0,0 based coordinate, and the map was not defaulted to that location at the beginning. If I change the map to none before moving to 0,0 and projection to meter, I will never able to find the background image due to relative scale of the map and image.
One last question, is there a way to manually set the default view/coordinate in Edit mode ? I need a better and more precise way to navigate map charts.
Hello,
I understand that this can be a little bit confusing, therefore if you have some recommendations on how to improve Map charts functionality you can submit a feature request [1].
Regarding your last question, I am not 100% sure if I have understood properly the use case scenario. Are you looking to limit the default zoom level of the Map chart? To ensure that the user is not going to zoom out completely and loose the image from the view? In case I have misunderstood the use case scenario, please provide some further details.
---
@Andrei_Cusnir , I meant a way for me to manually enter specific lat, lng in Edit Sheet mode, so map chart can center at said location (such as 0,0 which is likely to be the lower left of a custom image background). Thanks!
Hello @yjin,
I think natively this is not supported. The only as close as possible functionality that I was able to find is "Auto-zoom". You can go to Map settings and uncheck the "Auto-zoom" option. After that you can set the default view to where you want it to be. However, it might not cover the exact use case scenario that you need. In this case, you can submit a feature request [1] and elaborate in details as to why this is going to be beneficial for you and for other users.
---