I use the InMemoryLayer with lots of PointShapes (about 45.000 points). If I use an custom style with an 6x6 pixel gif, the layer draws circa 9000 ms. If I use PointStyles.City1 for example, the drawing time is circa 2700 ms. A PointStyle with PointSymbolType loads only 800 ms.
Option 1 - default style --> circa 2700ms for 45.000 points
inMemoryLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(PointStyles.City1);
Option 2 - style with PointSymbolStyle --> circa 800 ms for 45.000 points
inMemoryLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(new PointStyle(PointSymbolType.Star, new GeoSolidBrush(GeoColor.StandardColors.Yellow), 7));
Option 3 - style with GeoImage (6x6 pixel) --> circa 9000 ms for 45.000 points
inMemoryLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(new PointStyle(new GeoImage(Server.MapPath("~/images/my_symbol.gif"))));
Why are the differences between the drawing time of these 3 point styles so extreme?
The drawing times I have determine with the OnLayersDrawn event of the map.
Anke