Jump to content

onMarkerHit


Chopper

Recommended Posts

Posted

Hello.

How can i detect if a marker i hit is supposed to be the one i want to hit? for example, i have 2 markers, they both execute different stuff, but it will execute if i use onMarkerHit Event.

Thank you.

Posted

That's a possible way to do it, but you can also see if the source ( onMarkerHit's source = the marker that has been hitted ) equals the marker you want. Or you can add 2 event handlers both having different rootElements;

addEventHandler ( "onMarkerHit", , ); 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...