Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

dynamic OSM map background

Hi

I have followed most of the map examples found in the Share section.

As my customer site has no web access we wanted to verify the use of a local Geoserver and use OSM maps as background.

For a http call as

http://www.openstreetmap.org/?lat=47&lon=8&zoom=11

I get a page with an included .png representing the map

If I look at the graphic address I see that the picture has the URL

http://b.tile.openstreetmap.org/11/1068/719.png

So what I would like is to have the geoserver make the transition of lat/lon into this .png address and stuff this into the dynamic image property of my diagram.

So far this is still an intention as I haven't figured out how to do such a thing in Qlik

5 Replies
rbecher
MVP
MVP

Hi Juerg,

I've just released an OSM example here http://community.qlik.com/media/p/174824.aspx

- Ralf

Astrato.io Head of R&D
Not applicable
Author

HI,

the example is not available?

thanks

rbecher
MVP
MVP

Hi,

the old doesn't work anymore because the server has retired: http://tah.openstreetmap.org

But, I created a new example with a HTML file including the JavaScript lib from http://cloudmade.com to display OSM tiles (see attached files).

The HTML file is displayed with the website extension so you have to turn on web view.

- Ralf

Astrato.io Head of R&D
rbecher
MVP
MVP

Hi,

I found out that the app is getting unworkable after uploading in this forum.

Please download directly: http://bit.ly/zdmSwH

- Ralf

Astrato.io Head of R&D
Not applicable
Author

I don't know if you are still wondering of the answer but I found this formula  :

Lon./lat. to tile numbers

n = 2 ^ zoom xtile = n * ((lon_deg + 180) / 360) ytile = n * (1 - (log(tan(lat_rad) + sec(lat_rad)) / π)) / 2

It is from : Slippy map tilenames - OpenStreetMap Wiki

I think that could help you but you need do make the calculations inside your qlikview model.

Besides you will need to download all the tiles that you need.

Regards

Stephane