Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
845
map element click event doesn't fire when i add image to map element
posted

 

Hi

    i have some plant geometry. It contains lot of equipments such as boiler , storage tank, power generator etc. i have shapes corresponding  to each equipment. Now im adding images of equipment(JPEG or PNG) over the map element for more interactivity. But when i click the map element the event is not firing since the image is available on that. Even i add images over map element i want to have map element click event. because i need the information that which element  has been clicked. Ist is possible. Please anyone help me in this.

 

Parents
No Data
Reply
  • 30692
    Verified Answer
    Offline posted

    If you set IsHitTestVisible = false on your images or, more probably, whatever contains them, if it is hittable (the container), then the mouse events should pass through to the map.

    -Graham

Children