Once we have loaded our venue map, we might want to make use of one of the events fired during the load or interaction. For this we need to override the event and specify(optional) a handler function in such manner:

 

// Once we have instantiated myVenue, we can define new behaviour for indoorClick

myVenue.on('indoorClick', function() {

  // A click on the map will than log information

  // regarding the target entity.

  console.log('Custom handler', arguments)

});

 

For the complete working example look bellow: