Maps Widget

0
Hi all, I just want to show one marker image on maps widget. But there are multiple markers as and when i receive the data from an external source. How do i change it to just one marker image which corresponds to the latest data? Thanks  
asked
1 answers
0

This answer assumes you use the Google Maps widget. In the ‘Data source’ section of the widget, you can set an Xpath constraint. You can use this to filter the data, you can either:

  • Create a helper object, which references the object you wish to show. On the page, add a data view with this helper object, add the widget to the data view and add a constraint like [HelperModule.HelperEntity_Location = '[%CurrentObject%]']
  • On the page, add a data view with the object you want to show, add the widget to the data view and add a constraint like [id = '[%CurrentObject%]']
answered