I think you mistake my problem. (Sorry, my explain my problem unclearly.)
I use a sample like my problem.
Sometimes, we set MaxVisible of VectorLayer. It works OK.
I find it has the smae property "MaxVisible" in VectorLayer.Style .
I still don't unstardand what the different between VectorLayer.MaxVisible and VectorLayer.Style.MaxVisible.
I use a simple sample as follows:
SharpMap.Layers.VectorLayer layTown= new SharpMap.Layers.VectorLayer("Town");
layTown.DataSource = new SharpMap.Data.Providers.ShapeFile(<path>);
layTown.Style.Fill = new SolidBrush(Color.PaleGreen);
layTown.Style.Outline = System.Drawing.Pens.Yellow;
layTown.Style.EnableOutline = true;
layTown.SRID = 4326;
if I add code layTown.MaxVisible = 0.5;
it will show this layer when zoom value=0.5;
but if I remove code layer when zoom value=0.5; and add code
layTown.Style.MaxVisible = 0.5;
it doesn't show this layer like before.
zoomvalue is default value.
In your code, I'd like to make sure the MaxVisible value have to setted by one VectorLayer. and it can't set the different value in the same VectorLayer. Right??
Thanks a lot,