I’m loading in a bunch of points (little over 4000) from a spatial table in a ms sql database. I noticed it takes a bit of time to display on the map. Is there a way to increase performance of doing this? Relevant code is below:
string connectionString = "Server=****;Database=****;User ID=****Password=****";
MsSqlFeatureLayer sqlLayer = new MsSqlFeatureLayer(connectionString, "****", "objectid");
sqlLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.CreateSimplePointStyle(PointSymbolType.Cross, GeoColor.SimpleColors.Red, 2);
sqlLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
worldOverlay.Layers.Add(sqlLayer);
Note: I have 8 other layers in the worldOverlay. A few shape file layers, a personalgeodatabase layer, and an inmemoryfeature layer.
Thanks!