0 Replies Latest reply: Jun 12, 2017 3:48 PM by Eduardo DImperio RSS

    Changing js file from google maps

    Eduardo DImperio

      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.