Skip to content Skip to sidebar Skip to footer

Selecting Kineticjs Path By Id

I am trying to create an interactive map and have been exploring with some of the prebuilt templates. In this each country is created and highlights when the mouse is over them. My

Solution 1:

At any time, you can get a reference to a country through its id using stage.find:

var Brazil = stage.find("#Brazil")[0];

Then use that reference to highlight Brazil.

Post a Comment for "Selecting Kineticjs Path By Id"