Archie Cobbs wrote:
Thomas DeWeese wrote:
I have only encountered this when an element is not 'displayed'.
There are many things that may make an element not displayed.
It sounds like you have checked most of them. Are you 100% certain
that this polygon is being rendered? Like change it's fill and
see if it changes on screen?
It has fill="none" .. because I don't want the box to be visible.
I'll try changing it temporarily to see if that helps...
Fill none should still work (as it may be sensitive to pointer
events). I would still try just toggling the fill because that
will make sure that you aren't missing something in the document.
But this brings up the question, what would be the "right" way to
have a graphical element not visible but "rendered enough" to have
a bounding box?
visibility=hidden should also work (for the same reason above).
In this application, each room on a map has a polygon defined. When we
want to fill in the room with a certain color, we set the fill attribute
accordingly. But also, we'd like to be able to compute the "center"
of the room somehow, and our strategy was to find the bounding box
of the room's polygon and use the center of that as a close
approximation. We need to compute the centers of the rooms when the
map is loaded and before any rooms are filled in.
-Archie
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com
*
Confidentiality Notice: This e-mail message, including any attachments, is for
the sole use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all copies of
the original message.
*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]