cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

multi markers with google map extension

DD_7886593
7-Bedrock

multi markers with google map extension

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?

3 REPLIES 3
AdamR
14-Alexandrite
(To:DD_7886593)

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

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.

AdamR
14-Alexandrite
(To:DD_7886593)

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

Announcements


Top Tags