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

How to show multiple loacations at a same time in the google map widget?

sv
Newbie
Newbie

How to show multiple loacations at a same time in the google map widget?

Hi

I have a mashup which shows the details of five things.I want the location of each thing to be displayed at the same time in the google map widget which is included in the mashup. Is that possible? if so, How can it be done?

Can anyone provide me with the steps to do so?

4 REPLIES 4

Re: How to show multiple loacations at a same time in the google map widget?

Hi,

you can find similar post here: How to mark multiple plots in Google Maps?

Re: How to show multiple loacations at a same time in the google map widget?

Hi Supriya,

To have multiple locations at the same time on Google MAp Widget please try the following :

In your service add result filed as Info table and add  filed you require.

var params = {

    infoTableName : "InfoTable",

    dataShapeName : "Datashape"

};

// CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(Datashape)

var result = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);

// location:LOCATION

var location = new Object();

location.latitude = 42.452;

location.longitude = -72.124;

location.elevation = 0;

location.units = "WGS84";

result.AddRow({location:location})   // You can Add multiple marker using Add row.

Re: How to show multiple loacations at a same time in the google map widget?

sa-5
Regular Member
(in response to sv)

Re: How to show multiple loacations at a same time in the google map widget?

Hi Supriya

If you use stream, you can use the service called "QueryStreamEntriesWithData" from stream entity in mashup and map the location attribute with google Map. It should highlight all available locations.

Thanks

Senthil Kumar A

Announcements

Check out the upcoming Expert Session: Understanding ThingWorx Navigate Licensing in Community "Customer Events" section.