Problem about "LineSymbolizer" in wms demo

Topics: SharpMap v2.0, Web Controls
Jul 21, 2014 at 4:09 AM
Hi,everyone:

I use the "SharpMap.demo.wms" demo to show map , I got some mistakes .

while I added layer like this :
           VectorLayer layerFir = new VectorLayer(layerName, provider);

            layerFir.SRID = 4326;

            layerFir.IsQueryEnabled = false;

            var color = Color.FromArgb(112, 128, 177);

            layerFir.Style.Line = new Pen(color, 1.7f);     

            var cls = new SharpMap.Rendering.Symbolizer.CachedLineSymbolizer();
            cls.LineSymbolizeHandlers.Add(new SharpMap.Rendering.Symbolizer.PlainLineSymbolizeHandler { Line = new System.Drawing.Pen(color, 1) });

            var wls = new SharpMap.Rendering.Symbolizer.WarpedLineSymbolizeHander
            {
                Pattern = SharpMap.Rendering.Symbolizer.WarpedLineSymbolizer.GetZigZag(0, 3),
                Line = new System.Drawing.Pen(color, 1),
                Fill = new System.Drawing.SolidBrush(color),
                Interval = 20
            };

            cls.LineSymbolizeHandlers.Add(wls);
            layerFir.Style.LineSymbolizer = cls;
            return layerFir;
It's no problem in "Chrome" "firefox" ... browser .

but in the IE browser (whichever version), sometimes it will return error image , and

when I did not add "LineSymbolizer" to the style , it's OK, so I don't know where the

problem appears on , "LineSymbolizer" or the IE Browser ?


thanks very much .