Use current object on marker object in google maps widget

We are using the google maps widget but we recieve an error on loading that states that the xpath contains a wrong value namely [%CurrentObject%]. The situation we have is as follows: We have a ShipmentDataview that contains a RouteDatagrid and a Routedataview that listens to the data grid. When we select a route in the grid we would like the google maps widget to refresh. Currently it seems that the google maps only replaces the [%CurrentObject%] when it can find a context id. However in our case it is possible that the widget does not have a context just jet because no route is selected. Did anyone encounter this issue before and how can we solve this?
1 answers

Looking in the code it seems to skip the [%CurrentObject%] when 'pan to context' is true.

Otherwise you can use a helper-object.