hAlE
hAlE

Reputation: 1293

Determining if a point is inside a path element in Raphael.js

I have an SVG map and I want to draw some data using circles on the map. I want to make sure that the center of the circle drops inside the path. I can not use the bounding box, because yet it may be outside of the boundaries.

How can I determine if a point is inside a path?

Upvotes: 0

Views: 925

Answers (1)

Roman
Roman

Reputation: 3833

Raphael.isPointInsidePath() - http://raphaeljs.com/reference.html#Raphael.isPointInsidePath

Upvotes: 3

Related Questions