1 Reply Latest reply on Oct 15, 2015 2:41 PM by jlittle RSS
    nkamath-2 Newbie

    Google Maps: tutorial

    Hi,

     

    Is there a tutorial showing the use of Google Maps widget in Thingworx Composer?

     

    I have used the Maps javascript API before and am currently struggling to reproduce some of the core functionality: for example,

     

    1. How can I generate a heat-map overlay on top of Google Maps? This is easy to do using the Javascript API, but I can't figure out how to accomplish this in Thingworx?

    2. How can I display multiple markers - can I pass in an array for the "Data" field?

     

    Some examples would be really useful.

     

    Thanks,

    Narsimh

    Analog Devices

      • Re: Google Maps: tutorial
        jlittle Explorer

        I can answer the second question for you:

         

        You can attach an infotable-generating service to the Data source on the Google Map, and then specify the LocationField to the corresponding infotable field containing location data.

         

        As long as you have multiple rows being returned by the service/in the InfoTable provided as the Data Source, you should see multiple markers on your map, corresponding to each of your data rows.