Skip to main content
1-Visitor
October 24, 2017
Question

multi markers with google map extension

  • October 24, 2017
  • 1 reply
  • 1813 views

Hi, I would like to insert geolocation positions into a google map in the mashup.

1/ I start to get the data from my service with output INFOTABLE

Screenshot-2017-10-24 ThingWorx Composer.png

2/ I insert a googlemap widget into the mashup and I inseted all returned data into the googlemap widget:

Screenshot-2017-10-24 ThingWorx Composer(1).png

Should I choose Location type from the data shape for the fields?

1 reply

14-Alexandrite
October 25, 2017

Hi David, you will need to convert the separate fields into a single location type field.  You can do this via service and using the following structure for location type...

var location = new Object();

location.latitude = 0;

location.longitude = 0;

location.elevation = 0;

location.units = "WGS84";

Thanks,

Adam

1-Visitor
October 25, 2017

Hi Adam,

Could you check this with please :

Screenshot-2017-10-25 ThingWorx Composer.png

I got this when I choose data shape type as location.

14-Alexandrite
October 25, 2017

David,

Could you post (or message me) the service code?  Or is this coming from an external (to Thingworx) data source?  This would be the quickest way to assist.

Thanks,

Adam