Hexagon Geospatial
MENU

Smart M.App Tech Discussions

Looking for answers in regards to M.Apps, M.App Exchange or M.App Studio? Smart M.App Tech Discussion board is where you can search, ask your questions and assist others by sharing your knowledge. Join the conversation, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
mp
Contributor
Posts: 26
Registered: ‎05-30-2016

Charts and features click events

We have a specific case, where we would like to enable/disable layers depending on what data is displayed on map (via chart or feature clicking).

 

We cannot seem to find any related API for attaching events for when user clicks e.g. a chart. How do we go about attaching an event, so when a chart is clicked an event is fired (preferably also getting what was actually clicked in order to differentiate).

 

I have looked at the discussion "How to attach custom event handler to GeoJSON elements?http://community.hexagongeospatial.com/t5/Smart-M-App-Tech-Discussions/How-to-attach-custom-event-ha... but that just goes for the feature part of things. We would like to be able to hook on to other click events. Also we would of course prefer if this was available via API.

 

Thanks.

 

Technical Evangelist
Posts: 647
Registered: ‎09-11-2015

Re: Charts and features click events

Hi Mikkel,

 

For chart events, please take a look into this thread:

http://community.hexagongeospatial.com/t5/Smart-M-App-Tech-Discussions/Link-BI-Widget-with-raster-fi...

 

It's driven only by the related JavaScript library and thus it's not directly documented.

 

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.