[OpenLayers-Users] Retrieving label width

Nuno Magalhães nuno.magalhaes at inov.pt
Fri Nov 30 01:50:08 PST 2012


Hi,
Is there a precise way to determine the label width in pixels?
My method is putting the same text (same properties) on a div hidden in a
page and then retrieving the clientWidth but the width is less than appears
on the label and then I have to apply a correction factor 1.2... hence my
question.

Regards,
Nuno Magalhães



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Retrieving-label-width-tp5019813.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list