Hi
I am getting very poor performance displaying a shapefile on top of a worldmaplayer.
It takes many seconds to refresh when zooming and moving around.
Basically it is unusable.
I am hoping I am doing something wrong.
The code I am using is below.
The file is too large to post on this forum. But you can download it here
geodownloads.dmp.wa.gov.au/d…ntreDb.asp
Under Statewide Spatial Datasets
- Mineral Information
- Tenements - Current ( Live and Pending)
- Download
- Esri Shapefile
Hopefully you can see the problem as this is a real issue for us
regards
Murray
var layer =newShapeFileFeatureLayer(file);layer.RequireIndex =false;layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;layer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle =AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent,GeoColor.FromArgb(100, GeoColor.SimpleColors.Green));
// Convert to the current map projectionvar proj =newProj4Projection{InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326),ExternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(srid)};layer.FeatureSource.Projection = proj;proj.Open();_staticOverlay.Layers.Add(file,layer);