Reputation: 1293
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
Reputation: 3833
Raphael.isPointInsidePath() - http://raphaeljs.com/reference.html#Raphael.isPointInsidePath
Upvotes: 3