Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ExtensionMaster
Contributor II
Contributor II

API visualization.create : map

Hello,

Do you have any example on how to create a map object (with a location field data + 1 measure) on the fly ?

It seems not documented in this page, but when passing 'map' as object type, we can already see the map.

Now I want to add a layer to display the data on the map 🙂

https://help.qlik.com/en-US/sense-developer/August2023/Subsystems/APIs/Content/Sense_ClientAPIs/Capa...

Thanks,

Jeff

 

 

Labels (2)
1 Solution

Accepted Solutions
ExtensionMaster
Contributor II
Contributor II
Author

I could find how to do it by myself. We need to provide the option gaLayers.

To get an example,

- create a map manually in a Qlik App

- from a mashup/extension, call app.getObject('yourMapObjectId') => model

- then call model.getEffectiveProperties()

you can find the gaLayers definition in the response.

 

View solution in original post

1 Reply
ExtensionMaster
Contributor II
Contributor II
Author

I could find how to do it by myself. We need to provide the option gaLayers.

To get an example,

- create a map manually in a Qlik App

- from a mashup/extension, call app.getObject('yourMapObjectId') => model

- then call model.getEffectiveProperties()

you can find the gaLayers definition in the response.