Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Arnec
Contributor III
Contributor III

Mapbox issue with coordinates

Hi there

We managed to get mapbox working in Qlikview  by using a chart with a map background. Unfortunately something is going wrong with the conversion of coordinates to X,Y positions on the map. In the attached image you'll see that the distance between the scatter points is OK but it's on a wrong location of the map. Therefore my conclusion is that something is wrong in the formula. This is currently set up like this:

Expression: Longitude

=( round(256*pow(2,($(var_zoom)-1)))+( longitude  *((256*pow(2,$(var_zoom)))/360)) )

Expression: Latitude

=(  
((256*pow(2,($(var_zoom)-1)))+((0.5*log((1+(sin((latitude)*pi()/180)))/(1-(sin((latitude)*pi()/180)))))*((-256*pow(2,$(var_zoom)))/(2*pi()))))

)

Expression Metric:

sum(_Turnover)

 

Any mathematical geniuses out here that can see why this is not working? 🙂

Labels (2)
0 Replies