Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
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?
Hi,
you can find similar post here: How to mark multiple plots in Google Maps?
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.
A few other threads that might be helpful
https://community.thingworx.com/message/43019#43019
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