3 Replies Latest reply: Jul 11, 2016 10:02 AM by Adam Davies RSS

    Mapbox and Qlikview

    Adam Davies

      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=myaccesstoken#6/54.2525/-2.23615/0

       

      Note it does not work in desktop or webview

        • Re: Mapbox and Qlikview
          Adam Davies

          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'
          
            • Re: Mapbox and Qlikview
              Adam Davies

              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)

                • Re: Mapbox and Qlikview
                  Adam Davies

                  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