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: 
eduardo_dimperio
Specialist II
Specialist 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.

0 Replies