Google Map Widget
Last updated
Last updated
General Setting
User can change following things in Google Map widget:
Name for widget which will be used data reference. For Example, if widget name is 'Map', then data of widget is referenced as Map.data
Show title - User can show/hide widget title
Title Color
Background Color
Widget Setting
In Widget Setting option, user can change following parameters:
Key - key parameter of JSON Object which will define location details for Google Map widget.
Marker Color
Marker Type - Following marker types are available to show location on Map.
CIRCLE
BACKWARD CLOSED ARROW
FORWARD CLOSED ARROW
BACKWARD OPEN ARROW
FORWARD OPEN ARROW
User can select a source mode as MQTT or Action.
Using MQTT
Here, to update location on Google Map user can publish JSON object on given testData MQTT topic. No need to provide <account_id> while providing the MQTT topic. The JSON object will be as below.
Using Action
Here, to update the Google Map widget, output of the action should contain JSON object as given in above example. User can also update the widget either onLoad or periodically by providing refresh interval.
Google Map widget does not support any event.
If we configure Google map Widget as below:
key - mapKey
Marker type - circle
Marker color - red
and set source type for widget as MQTT and topic configured is 'data'. And if we publish following JSON Object over 'data' topic then Google Map Widget will look as shown in image.