Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Valued Contributor II

Changing js file from google maps

Hi everyone,

I using an extension Google Maps Sense, but that extension doesn't have much customize option, so i changed a little bit the js and i was succeeded. The problem is that i need to use one diferent pim according to a field value.

How can i pass the value of the field to js?

Var  image: 'https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png’                                                                           

var marker = new google.maps.Marker({

position: point,

title: '',

icon: image,

customData: hasMeasure ? row[1].qText : 1,

qElem: row[0].qElemNumber


I think the best way is var image receive an array with all paths and inside the var marker i define with an"if", but i dont know how to pass a QS value to a JS file.

Community Browser