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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

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

sv
1-Visitor
1-Visitor

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
12-Amethyst
12-Amethyst
(To:sv)

Hi,

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

mchehaibi
12-Amethyst
(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
8-Gravel
(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

Announcements


Top Tags