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: 
schmidtj
Creator II
Creator II

Custom KML in map chart shows wrong shape

Hi,

i am trying to do a floor plan with the Qlik Sense map chart.

I created a SVG and converted it to a KML (very simple test file).

I created some dummy data in Qlik Sense, took the map chart and set my imported KML for the coordinates.

 

The problem is, that the Qlik map shows some shape but it is not the shape according to the SVG.

I attached a file which shows my dilemma.

 

Does anybody have an idea what i am doing wrong?

 

Cheers.

8 Replies
lorenzoconforti
Specialist II
Specialist II

If I take the p1 coordinates and recreate the svg file, I can see in Chrome what you see in Qlik Sense (i.e. the left side picture you posted, not the right hand side one). Maybe the issue is with the svg conversion? How did you do it? Can you post the svg file?

schmidtj
Creator II
Creator II
Author

Hi,

i attached the SVG file.

I create it with it with Inkscape und converted it online:

https://mygeodata.cloud/converter/

lorenzoconforti
Specialist II
Specialist II

I think the issue is that in your svg you are not referencing coordinates which is the base of a KML file. It would be probably best to use an extension to visualise the svg (https://github.com/brianwmunz/svgReader-QlikSense)

schmidtj
Creator II
Creator II
Author

Yes i did that too.

I used the same SVG but when selecting it in the extension i only get a blank area.

 

Is there a best way how to create those SVG files?

Its not possible to just use an svg editor, i have to always edit the code in the data?

This is quite complicated when i want to draw some more complex things.

Is there any information on how to create SVGs for Qlik Map in an easy way?

lorenzoconforti
Specialist II
Specialist II

The extension works fine for me with your SVG; you need to place it into the extension folder (svgReader\svgs) and then set the extension properties: SVG Setting > SVG Map (Custom SVG) > Custom SVG Name (svgs/test.svg)

See attached; there are SVG editors online or that you can download; I haven't done much work on them but there are plenty of resources online. The only thing to keep in mind is that the extension matches the shape through the id field

SVG.png

schmidtj
Creator II
Creator II
Author

Ok, the svg extension doesnt really work with a custom svg and i have no idea why.

I treid your file but its basically what i did. I placed the SVG in the folder and referenced it as described but i get a 404.

I put the same rights for the file like the other ones have in that folder.

I have Qlik Sense server version (Nov 19) where the extensions are in a shared folder.

 

I just dont get it. The files are accessible via url, for example:

https://.../extensions/svgReader/svgs/taiwan.svg

If i rename the taiwan file and the url accordingly its not working either.

I just dont get it ...

lorenzoconforti
Specialist II
Specialist II

I can see other people are having issues with Qlik Sense server and this extension (I've only tried on Desktop); https://github.com/brianwmunz/svgReader-QlikSense/issues/47#issuecomment-500855711

 

Have you tried publishing my app just to check if everything else is working correctly?

schmidtj
Creator II
Creator II
Author

So there seems to be some securtiy measure by Sense Server that you cant just copy/paste files in the appropriate extension folder in the server. I uploaded the file via the extension editor now. it goes the in the root folder of the extension and not in 'svgs' bute from there i can reference it too.

 

Thanks for your help so far!