Discussion board where members can get started with QlikView.
I am using the personal edition of Qlikview and am trying to map locations using the google map static map api. I have about 3,000 records and am able to get the google map to display with the locations pinned to the map but the locations are not aligned properly to their lat, lon.
I have used the code in the example su[pplied with Qlikview. I am using a unique identifier, a seven digit number as the dimension. on the expressions tab of the map my expressions ar for latitude, longitude and sum of sales.
The definition of the longitude and latitude expression,
avg( round (256*pow(2,($(var_zoom)-1)))+( longitude *((256*pow(2,$(var_zoom)))/360)) )
changes the X and Y value to a field other than Latitude and Longitude and the definition ends up being Sum ([longitude]) and Sum ([latitude]).
I suspect this may be the issue but I have not been able to solve the problem so the data displays properly.
Any help would be appreciated.
Thank you for your quick response.
For code, I am using the example that comes with Qlikview. It was my understanding from reading the documentation that since the Google Map static API was based on the mercator projection that the calculus in Qlikview modified the Lat Lon coordinates so they could be accurately placed over the Google Map.
Here is an example
The expressions tab of the chart properties (advanced mode) has sum ([Longitude]) or sum ([latitude]) in the definirtion of the label rather than the code that is in the example. When I insert the code from the example in the label definition box, then the X and Y values change to another field in my data that makes the map disappear.
Thanks for considering a solution to this dilema.
Finally it's not var_zoom or the suggestion of Michael or a projection problem.
I built a little example with you coordinates. As you can see, it seems smart. I've just add an Id and some datas (Sales, Type).
I can't explain what is wrong in your app maybe an option you checked but i suggest you to use my chart and integrate your data