Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

US Map in geospatial view using scatter

Hi,

I am trying to show US map using scatter plot and dynamic image as background with latitude and longitude of each city, but it's not coming up as expected. Please help.

Regards,

Navdeep

1 Solution

Accepted Solutions
stigchel
Partner - Master
Partner - Master

You can e.g. do the following to correct, also see attached

join(Georaphy)

load City,State,latitude,-longitude as longitude;

load * inline

[

City,State,latitude,longitude

View solution in original post

5 Replies
stigchel
Partner - Master
Partner - Master

The minus sign in your longitude numbers got lost, fix that in your load or replace longitude with -longitude everywhere

e.g.

var_mid_long=min(-longitude)+(max(-longitude)-min(-longitude))/2

Not applicable
Author

Hey, Could you explain what you meant by negative sign or please share if you have done something like this, because I am not very much clear about this piece of code.

Regards,

Navdeep

stigchel
Partner - Master
Partner - Master

The longitude numbers are wrong in your data, take e.g. New York, they should be 40.77,-73.98 instead as below from your load

join(Georaphy)

load * inline

[

City,State,latitude,longitude

...

New York,NY,40.77,73.98

..

stigchel
Partner - Master
Partner - Master

You can e.g. do the following to correct, also see attached

join(Georaphy)

load City,State,latitude,-longitude as longitude;

load * inline

[

City,State,latitude,longitude

Not applicable
Author

Thanks, got your point.