robzombie
03-10-2005, 05:48 PM
Hello all.
the evt.clientX and evt.clientY returns the x/y co-ordinate in pixels, however, the viewbox co-ordinates viewBox="518008 -185126 170 180" are not in pixels (they are map co-ordinates and are inline with the British national grid). How can I get the maximum x and y values in pixels so that I can convert the evt.clientX and evt.clientY into the viewbox's co-ordinate system, instead of pixels?
Thank you.
the evt.clientX and evt.clientY returns the x/y co-ordinate in pixels, however, the viewbox co-ordinates viewBox="518008 -185126 170 180" are not in pixels (they are map co-ordinates and are inline with the British national grid). How can I get the maximum x and y values in pixels so that I can convert the evt.clientX and evt.clientY into the viewbox's co-ordinate system, instead of pixels?
Thank you.