Skip to main content
1-Visitor
January 11, 2016
Question

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

  • January 11, 2016
  • 4 replies
  • 2627 views

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

1-Visitor
January 11, 2016

Hi,

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

5-Regular Member
March 16, 2016

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.

1-Visitor
July 4, 2017

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