[![http://screen.kroxus.net/umid/20150726-989-8kb.jpg](https://i.stack.imgur.com/8GCjQ.jpg)](https://i.stack.imgur.com/8GCjQ.jpg) 

Here is a map with TileWMS.

Is it possible to detect if a user clicked on a red square?

How can I detect by mouse clicking on the map to get the TileWMS layer?