Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
adamdavi3s
Master
Master

Mapbox and Qlikview

Hi All,


Has anyone managed to get Mapbox working in qlikview?

I can see several threads on it and even an old extension but none seem to provide any up to date information and the extension is no longer running.

I've got a system which generates the URL perfectly and if I copy this into the browser it is the exact map I want, but it won't display as the background of a scatter in qlikview (Google and Bing work great).

Example Url: https://api.mapbox.com/styles/v1/adamdavi3s/ciqcbvvx50024e1mbl9p7f6yj.html?title=true&access_token=m...

Note it does not work in desktop or webview

1 Solution

Accepted Solutions
adamdavi3s
Master
Master
Author

Figured it out, this won't give you slippy maps but will return a static map as per google.

This is the URL to retrieve the image (for example):

='https://api.mapbox.com/v4/mapbox.light/'&num(v_map_var_mid_long, '##############', '.', ',' )&','&

num(v_map_var_mid_lat, '##############', '.', ',' )&','

&v_map_var_zoom&'/600x600.png?access_token=yourtokengoeshere'

View solution in original post

3 Replies
adamdavi3s
Master
Master
Author

Figured it out, this won't give you slippy maps but will return a static map as per google.

This is the URL to retrieve the image (for example):

='https://api.mapbox.com/v4/mapbox.light/'&num(v_map_var_mid_long, '##############', '.', ',' )&','&

num(v_map_var_mid_lat, '##############', '.', ',' )&','

&v_map_var_zoom&'/600x600.png?access_token=yourtokengoeshere'

adamdavi3s
Master
Master
Author

Looks like there is a bit of work to be done on getting this exact, the zoom levels differ which leads to some inconsistencies if trying to use the original google maps formula (bing translated great)

adamdavi3s
Master
Master
Author

OK this is the formula required to make the zoom level work with all the google code:

='https://api.mapbox.com/styles/v1/mapbox/'&

v_map_maptype&'-v9'&

'/static/'&num(v_map_var_mid_long, '##############', '.', ',' )&

','&

num(v_map_var_mid_lat, '##############', '.', ',' )&

','&

v_map_var_zoom*((v_map_var_zoom-1)/v_map_var_zoom)&

',0,0/'&v_map_map_size_x &'x'&v_map_map_size_y&

'?access_token=yourtokenhere'

note the slight adjustment made to the zoom section