Steps to to navigate to different mashups on double click of different google map markers in ThingWorx
- Create a DataShape with two fields
- Location
- MashupName
- Create a DataTable using the DataShape
- Add required Location data and corresponding MashupName to be opened in the DataTable
- Create a mashup
- Add GoogleMap and Navigate widget to the mashup
- Bind All Data from QueryDataTableEntries service of the DataTable in the mashup to the GoogleMap widget by dragging and dropping that item onto the GoogleMap and selecting the Data option
- In GoogleMap widget properties select LocationField as Location
- Bind MashupName from Selected Row(s) in QueryDataTableEntries service of the DataTable in the mashup to the Navigate widget by dragging and dropping that item onto the Mashup Link and selecting the MashupName option
- Bind the DoubleClick event of GoogleMap widget properties in the mashup to Navigate widget by dragging and dropping that item onto the Mashup Link and selecting the Navigate option
- Save and view mashup
Copy of my article as blog post: https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS249997&lang=en_US