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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

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

sv
1-Newbie
1-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
qn
1-Newbie
1-Newbie
(To:sv)

Hi,

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

mchehaibi
5-Regular Member
(To:sv)

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.

PaiChung
22-Sapphire I
(To:sv)
sa-5
5-Regular Member
(To:sv)

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

Top Tags