In the map application I am developing, I have implemented 2 z-index layers. However, a problem arises when attempting to zoom in by clicking on these layers. The click handler is located on the lower z-index layer and I do not want it to execute when a control on the higher layer is clicked.
The issue at hand is that the event always triggers, but the originalTarget property of the event does not correspond to the image in the lower layer when an element on the top layer is clicked. Is there a way to resolve this inconsistency?