[OpenLayers-Users] Help with 2.6 strokeWidth and strokeweight on linestring on IE

Linda Rawson linda.rawson at gmail.com
Tue Jun 3 17:02:34 EDT 2008


I am just getting back to trying to get my application to run in 2.6.
I cannot see linestring vector objects at the lowest scales.  I am
beating my head against the wall.  I get some of them to show up,
those with only 4 points by setting the StrokeWidth to 1 on the style.

The rest....don't work.  I step through the code.  At these lines in VML.JS

if (options.isStroked) {
            node.setAttribute("strokecolor", style.strokeColor);
            node.setAttribute("strokeweight", style.strokeWidth + "px");
        } else {
            node.setAttribute("stroked", "false");
        }

node.getAttribute("strokeweight") before is 0.75.  On the first zoom
levels it changes to "1px".  Anytime I zoom further it will not change
the value of strokeweight no matter how hard I try to change the value
using hardcoded attributes or whatever.

What has changed in this area between version 2.5 and 2.6.  Where is
.75 coming from?  Where can I override that?

--
Linda Rawson



More information about the Users mailing list