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

Andreas Hocevar andreas.hocevar at gmail.com
Wed Jun 18 06:24:20 EDT 2008


Can you please provide a stripped down example that shows the problem?

Regards,
Andreas.

On Tue, Jun 3, 2008 at 11:02 PM, Linda Rawson <linda.rawson at gmail.com> wrote:
> 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
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list