I am currently trying to convert a 2.0 application over to the new 3.0 version. I am using Beta 2 at this point in time however I am running into a couple issues.
First issue, I load some shape files when the winform loads initially with a default zoom level of 14. I only want the points and their associated icons to show up at that point otherwise things are just way to cluttered. I have attached the code below but I believe it is fine. However, it just seems to take a couple minutes for things to show up once I get zoomed into those levels. For instance, the street names, I can let the map site for 2 minutes or so before the street names start to appear as well as any other detail at those levels. This is on a new QuadCore 2.33 machine with 6GB RAM.
Second issue, one of the shapefiles that I am loading, it is a fire hydrant layout done with Arc something or another by the city of Fargo will not display. I can load it in ArcExplorer and also your MapSuiteExplorer but I cannot gets the points to display on the map. The code is the same as below which I don't believe there is anything wrong with.
if (File.Exists(Application.CommonAppDataPath + "\\" + shapeFileName + ".shp")) {
ShapeFileFeatureLayer layer = new ShapeFileFeatureLayer(Application.CommonAppDataPath + "\\" + shapeFileName + ".shp", ShapeFileReadWriteMode.ReadOnly);
layer.ZoomLevelSet.ZoomLevel14.DefaultPointStyle.PointType = PointType.Bitmap;
layer.ZoomLevelSet.ZoomLevel14.DefaultPointStyle.Image = new GeoImage(Assembly.GetExecutingAssembly().GetManifestResourceStream("EPIC.Works.Resources." + assetType.AssetTypeResource));
// Create and set zoomlevel.
layer.ZoomLevelSet.ZoomLevel14.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
Map.StaticOverlay.Layers.Add(layer);
layer.Close();
}
Thanks.
Curtis