Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Discover how ThingWorx Widgets can be implemented in a compelling Mashup design.
This project will introduce how to create complex user interfaces that are built by combining simple Widgets and basic styling.
Following the steps in this guide, you will build a web application showing both geographic and table based information.
We will teach you how to create a professional user interface that effectively conveys information to users.
NOTE: This guide's content aligns with ThingWorx 9.3. The estimated time to complete ALL parts of this guide is 60 minutes
A Mashup like this does take some time to assemble, but is built by layering simple Widgets. In this guide, we will break down how this Mashup was created to give you a behind-the-scenes look and provide tips to use when developing your IoT application.
This professional-looking Mashup was created using only these Widgets:
The first Widget placed on this Mashup canvas was a Layout widget with both a Left and a Right Sidebar defined. The center portion of the layout has only one GoogleMap widget. The tractor icons displayed on the map were created by uploading a .png to create a Media entity then specifying the image as a custom MarkerStyle in the GoogleMap widget. In the following steps you will duplicate this Mashup.
In this step we will download and them import both a Thing Template and the sample data that are used throughout the exercise.
Follow the steps in this part of the lesson to create a Mashup with an organized, structured layout.
NOTE: The next step uses the Google Map Widget which may need to be downloaded and imported from IQNOX.com. A Step-by-step guide for using Google Maps with ThingWorx is available.
12. Click the Widgets tab on the top left of the Widget panel, then enter map in the search box of the Widget panel.
13. Click and drag the Google Map Widget onto the center area of the canvas.
14. Click Save
15. In the Data panel on the right click the + to add a data source for the Mashup.
16. Enter the name of the Template used to create the Things that will be shown on the Mashup. Click on the Template ConnectedTractor to use the sample data
17. Click the arrow to the right of GetImplementingThingsWithData, then click the Execute on Load check box before clicking Done.
NOTE: The imported sample data provided for this lesson has a property named TractorLatLng that contains location information. Fields in the bound data with a type Location will be available in the drop down.
4. Click Save at the top of your Mashup. Click View Mashup to see the live map.
NOTE: The map uses the standard markers, click on one of the markers to see that the marker changes to indicate that it is selected.
In this part of the lesson we will show how to use a custom image for the map markers.
Right-click on each of the images below to download and save them to use in the next step.
We will upload these images to create new Media entities and apply them to the Google Map widget.
14. Repeat steps 1 through 8 to create and assign the TractorSelected image for the SelectedMarkerStyle Property.
15. Click Save for the Mashup, then View Mashup to see the custom map icons.
The left sidebar defines the green background color in its style and contains just one Collection widget with custom embedded Mashups specified for both the Selected and the Unselected items. The logo at the bottom is an image defined in the Footer style.
The Collection widget works by duplicating an embedded panel Mashup that controls the display of data from each entity in collection of entities.
Next, we are going to add a custom background color and image to the sidebar footer.
Click here to view Part 2 of this guide.