Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

igdrazil
Contributor III

Custom Mapping

Good Morning Qlik'ers (at least it is morning here in Germany)

I'm about to create my own map for the map-Vis and i'm stumbling over some problems and not understanding:

1. Due to the possibility of a custom map URL, is it possible to use a localhost address for example? The thing is that i want to use a picture of a storage and give it some coordinates to show the workload of each specific part.

2. So when i (hopefully) can use a custom image as map background, how can i set the coordinates. I guess i need to set the first point (top left corner 1,1) and the last point in bottom right (e.g. 50,50), so a get the coordinate patterns to put my elements in there.

3. Can anyone explain me the Attribution. I know that it is about how to interpret the URL and the image that is put there, but is there an example how this should look like?

I'm very thankful in advance.

Regards

Chris

1 Solution

Accepted Solutions
igdrazil
Contributor III

Re: Custom Mapping

So the URL for the Map has a part in it which says "page.html?access_token=pk.as23df".

This part has to be cut out of the link for now and be edited.

When editing this i mean deleting the "page.html" part of it.

Now u got "?access_token=pk.as23df".

Now you gonna paste at the end of the formated part, (smth like ...com/username.mapcode/)   your link to the png files of the map which are "${z}/${x}/${y}.png".

Your link should look like that now  "https://a.tiles.mapbox.com/v4/username.mapcode/${z}/${x}/${y}.png".

The last step is the simpliest, just paste the formated access_token part at the end of this URL and it works fine (at least for me it does )

For clarity... the link will look like this"https://a.tiles.mapbox.com/v4/username.mapcode/${z}/${x}/${y}.png?access_token=pk.as23df"

Regards

Chris

11 Replies
igdrazil
Contributor III

Re: Custom Mapping

What i found out so far:

1. No new Informations about this.

2. I used MapTiler to create my own map tiles which are in my own coordinate pattern. They are now in slippy Map format, and usable in the browser, but not yet in Qlik

3. I was wrong about my knowledge of Attribution. This is just the Bottom line of the map visualisation where you get the links to their homepage and some copyright info.

So i still need to know if/how-to put a local(host) URL in Qlik Map Vis to use the Slippy map i have on my Desktop. Maybe mto‌‌ can relay this to a map specialist?

Regards

Chris

mjm
Contributor III

Re: Custom Mapping

Hello Christoph,

With regards to point 1 of your question, I have used TileMill as a custom tile server. This runs in the background and provides the tiles I required for mapping with in Qlik Sense. I actually needed to use localhost to refer to the map tiles I needed. So in a short answer yes it is possible. See the image below for this point and how it is rendered. The shapes are basically then a KML file overlayed over the top of the tilemap.

You are correct with the attribution, This is basically just a credits part of whoever provides the slippy map.

tilemill.JPG

referenced as Type: SlippyMap with the URL property as: https://a.tiles.mapbox.com/v3/teapea.mna60ha4/${z}/${x}/${y}.png

I hope this helps to answer your question. Please mark this as helpful and correct if it does.

Thanks,

igdrazil
Contributor III

Re: Custom Mapping

Hello again,

I'm done creating my Map, but when i try to put in the link in Qlik i get no map to see, when I check the console, there is an error 401 (Unauthorized), so I used the link with the access Token (it is not expired) and i get the same error.

Can anyone help me with this? Do I need to change anything else on Mapbox? I'm thankful for every advise

Regards

Chris

Employee
Employee

Re: Custom Mapping

Hi Christop - has anyone gotten back to you on this - do you still require assistance?

Regards,

Mike T

Qlik

igdrazil
Contributor III

Re: Custom Mapping

Hi Michael,

not to this last Question. Still struggling with the unauthorized error (401). I checked everything on the mapbox.com website but i can't find anything to give public access or something like that.

Regards

Chris

Employee
Employee

Re: Custom Mapping

OK thanks for the reply - Hi mjm‌ - can you follow up with Chris on this?

Mike T

Qlik

igdrazil
Contributor III

Re: Custom Mapping

Hi Mike,

I'm still having the problem explained above, mjm‌ didn't follow up yet.

Regards

Chris

P.S.: I've described my problem in more detail in another post: Map Visualisation, custom Mapbox Link

igdrazil
Contributor III

Re: Custom Mapping

Problem Solved!

Employee
Employee

Re: Custom Mapping

Hi Christoph - great to hear. Would you mind sharing what the solution was and then we can mark that one as helpfull / correct?

Thanks.

Mike T

Qlik