Hello ThinkGeo-Team,
I have several questions relative to my current development.
1.)
I use custom layer class inherited from ThinkGeo layer class. To improve the performance I use LayerOverlay and FileBitmapTile cache with my custom layer. I have mentioned that the DrawCore() method of my custom layer is not be called if the drawing extent data exist in the FileBitmapTile cache. But I can see the OpenCore() method is called every time also when the data exists in the FileBitmapTile cache.
As ThinkGeo suggested I have implemented many of my initialization code in OpenCore(). This means the layer is allways initialized and my code in OpenCore is allways called although this has only to be done if the data do not exist in the cache.
Due to the fact the code mentioned above is working in an webservice (gis.thinkgeo.com/Support/Dis...fault.aspx) i have to close the layer after returning the drawn image to the client so I can leave the layer open to avoid calling the OpenCore() again.
To improve the performance I think the OpenCore() method needs only to be called if the drawing extent is not in FileBitmapCache before the Draw() and DrawCore() will be called.
2.)
If I want the FileBitmapTile cache to use .PNG tiles so I must use the constructor where I have to pass in a TileMatrix object. The MapUnit of the data we display is meter and decimal degree.
- Do I have to set the TileMatrix.GeopraphyUnit according to the MapUnit that is used by the map?
- What does the BoundingBox property of TileMatrix specify?
- Can you give me some default values for tilewidth/height according to the MapUnit?
Thanks Thomas