Select to view content in your preferred language

TileCacheMapLayer problems in 10

1904
1
10-07-2010 08:36 PM
PeterTimmers
Frequent Contributor
Has anyone got tilecachemaplayers to work in 10?

I've got the following code.


    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim tilecache As New DataProducts.RasterData.TileCacheMapLayer("d:\AirOps_AerialBaseLayer\Layers")
        tilecache.Open()
        Map1.MapLayers.Add(tilecache)
    End Sub


I'm getting past the code but then it's giving me "Parameter is not valid" when the form displays.

There is nothing on this form besides a mobile map control.

The cache is fully constructed... only down to ~1:288000.

There is a conf.cdi and conf.xml file in that Layers directory.  It's a compact cache.

The stack trace is:

   at System.Drawing.Bitmap..ctor(Stream stream)
   at ESRI.ArcGIS.Mobile.DataProducts.RasterData.TileMapLayer.CreateImage(Display display)
   at ESRI.ArcGIS.Mobile.DataProducts.RasterData.TileMapLayer.Draw(Display display)
   at ESRI.ArcGIS.Mobile.MapLayer.OnDraw(IntPtr canvasHandle)
0 Kudos
1 Reply
YuMinglang
Emerging Contributor
I have the same probles. what a pity.
0 Kudos