gvernar

Implementing Custom AGSTileLayer

Discussion created by gvernar on Apr 14, 2010
Hi

We are trying to inherit from AGSTileLayer because we want to store tile files locally.

Accoring to  Reference

we can  create our own TileMapClass but we do not know how to implement these two methods.

- (UIImage *)tileForLevel:(NSInteger) level  row:(NSInteger) row  column:(NSInteger) column
- (NSOperation *)tileForLevelAsync:(NSInteger) level  row:(NSInteger) row  column:(NSInteger) column

Please can you give us an example of a custom AGSTileLayerClass that uses tileInfo = openstreetmaps but instead of downloading images from the web it reads them locally for example [UIImage imageNamed:@"C00000840.png"]

Thank you.

Outcomes