5

let say i have svg document like this:

 "<svg height='300' width='300'><rect class='rect us' id='12212' x='34' y='54' width='20' height='20'/><rect class='rect us' id='12213' x='64' y='54' width='20' height='20'/></svg>

Is it possible to hit test SVGElements by given point and get id of this element? If so how can i accomplish this task? I did some googling and can't really find anything.

Macko
  • 139
  • 7
  • it is not web dev with all this js/html/dom or something. I'm writting android app in Xamarin. – Macko Oct 17 '17 at 14:59
  • SkiaSharp has support for rendering SVGs and it's working well, I can load svg and get rendered bitmap, now I want to make my rectangle clickable. – Macko Oct 18 '17 at 09:52
  • Have you managed to get this working? I need the same thing. thanks – gjfonte Jan 09 '18 at 00:19
  • Have you tried using a [gesture recognizer](https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/gestures/tap/)? – rraallvv Jan 29 '18 at 16:04

0 Answers0