Hi Dib,
Thanks your data, I tested that with your code.
But I hadn’t reproduced your issue.
It looks the zoom in and zoom out is very quickly even I delete the cache images.
Please view that here http://screencast.com/t/HkzeoPpC3xn
And here is my test code:
Private Sub WpfMap_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
Map1.MapUnit = GeographyUnit.DecimalDegree
Me.Map1.ZoomLevelSet.CustomZoomLevels.Add(New ZoomLevel(800)) '1125
Me.Map1.ZoomLevelSet.CustomZoomLevels.Add(New ZoomLevel(500))
Me.Map1.ZoomLevelSet.CustomZoomLevels.Add(New ZoomLevel(100))
Me.Map1.ZoomLevelSet.CustomZoomLevels.Add(New ZoomLevel(50))
Me.Map1.ZoomLevelSet.CustomZoomLevels.Add(New ZoomLevel(10))
Me.Map1.ZoomLevelSet.CustomZoomLevels.Add(New ZoomLevel(1))
Me.Map1.ZoomLevelSet.CustomZoomLevels.Add(New ZoomLevel(0.1))
Dim _folder = New String("D:\8268\")
Dim LAND_COLOR = GeoColor.StandardColors.Red
Dim layerOver As New LayerOverlay
Dim proj4 = New ManagedProj4Projection
proj4.InternalProjectionParametersString = ("+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs")
proj4.ExternalProjectionParametersString = ManagedProj4Projection.GetEpsgParametersString(4326)
proj4.Open()
Dim countries As ShapeFileFeatureLayer = New ShapeFileFeatureLayer(_folder & "countrieswoUS_merged.shp")
countries.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1
countries.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
countries.FeatureSource.Projection = proj4
countries.Open()
countries.WrappingMode = WrappingMode.WrapDateline
countries.WrappingExtent = countries.GetBoundingBox
Dim statesLayer As ShapeFileFeatureLayer = New ShapeFileFeatureLayer(_folder & "states.shp")
For Each aZoom As ZoomLevel In Me.Map1.ZoomLevelSet.CustomZoomLevels
statesLayer.ZoomLevelSet.CustomZoomLevels.Add(aZoom)
statesLayer.ZoomLevelSet.CustomZoomLevels(statesLayer.ZoomLevelSet.CustomZoomLevels.Count - 1).DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(LAND_COLOR)
Next
statesLayer.FeatureSource.Projection = proj4
statesLayer.WrappingMode = WrappingMode.WrapDateline
statesLayer.WrappingExtent = New RectangleShape(-180, 90, 180, -90)
Dim countiesLayer As ShapeFileFeatureLayer = New ShapeFileFeatureLayer(_folder & "conus_land.shp") 'conus_land counties_inland
countiesLayer.ZoomLevelSet.ZoomLevel09.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(LAND_COLOR)
countiesLayer.ZoomLevelSet.ZoomLevel09.DefaultAreaStyle.OutlinePen.Color = GeoColors.Transparent
countiesLayer.ZoomLevelSet.ZoomLevel09.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
countiesLayer.Name = "counties_land"
countiesLayer.FeatureSource.Projection = proj4
countiesLayer.WrappingMode = WrappingMode.WrapDateline
countiesLayer.WrappingExtent = New RectangleShape(-180, 90, 180, -90)
layerOver.Name = "abc"
layerOver.Layers.Add(countries)
layerOver.Layers.Add(countiesLayer)
layerOver.Layers.Add(statesLayer)
layerOver.TileCache = New FileBitmapTileCache("C:\tmp", layerOver.Name)
Map1.CurrentScale = 800
Map1.MinimumScale = 0
Map1.CurrentExtent = countries.GetBoundingBox
Me.Map1.Overlays.Add(layerOver)
Me.Map1.Refresh()
End Sub
Please update your dll to our latest version, and if you still met the same problem, please build a simple sample which can reproduce your issue, so we can work for it.
Regards,
Don