Using map events on dhis2

Is it possible to use map events to display context sensitive data. Say for instance I want reports associated with a certain organization unit, can I click on the map and get the ID to use to display reports associated with that unit.

Thank you,


Hi @cwaweru - I don’t fully understand what you are trying to do, but am moving this to the #support channel as it doesn’t seem to be related to building a custom DHIS2 app (please correct me if I am wrong).

In the maps application you can add an Events layer and target a specific organization unit, which will display the events within that particular org unit on the map. Is that what you’re hoping to do?

If, instead, you are trying to use the DHIS2 API to access event data, yes you can pass an ou param to that endpoint - there are multiple different ways to do this, depending on your goal. You can read about the event analytics endpoint and the organisation units collection (which will show you the ID of each org unit).