Here is my workflow for creating tiles and linking them to a layer.
1) load shapefile 2) grab layer representing shapefile 3) init & execute mapcruncher 4) turn on dynamic display 5) create dynamiccachelayermanager and init with my layer 6) save layer as layerfile
I've managed to successfully modify this sample: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000mm8000000
It creates my png files and a file called conf.xml. In conf.xml it has the following data:
<LODInfo xsi:type="typens:LODInfo"> <LevelID>1</LevelID> <Scale>485413.57628360949</Scale> <Resolution>0.0011550226764674709</Resolution> </LODInfo>
I thought if I set my mapScale to 485413.57628360949 then it would grab my generated tiles instead of regenerating them, but no luck, it still wants to regenerate them. I think its just a mapscale issue, do you know how to get the mapscale of the generated tiles so I can put it set it via the IMapControl.mapScale interface?
Here's what happened next:
1) I used mapcruncher to generate tiles, it also generated a conf.xml 2) I open conf.xml to get the mapscales 3) I hard coded those mapscales in as my zoom levels 4) Dynamically generate the tiles at my hard coded zoom level 5) compare the mapcruncher generated tiles to the tiles which are dynamically created
The MapCruncher files start at Level 0 - 8, and the images are numbered in an orderly fashion.
C0000000.png C0000001.png... etc.
But the dynamically generated pngs are in the following format
C0000003d.png even if only 1 png represents the whole map. One would expect C00000000.png here....
I am truely lost here.