Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Great that this forum exists now. I hope it will thrive.

Let me start by saying I did ask this particular question on the official iPhone SDK forum as well.

I have seen a working example of a TiledMapServiceLayer subclass that overrides the GetTileUrl(int level, int row, int col) method to point to a TMS-compliant service. This is in the .NET API. I tried implementing

-(NSString *)tileURL:(NSInteger)level row:(NSInteger)row column:(NSInteger)column 

and various variations but to no avail. Is there a workaround for this or does the ArcGIS iOS SDK just not support TMS?

share|improve this question

3 Answers 3

According to ESRI the iOS SDK supports Tiled Map Services

http://help.arcgis.com/en/arcgismobile/10.0/apis/iphone/reference/interface_a_g_s_tiled_map_service_layer.html

share|improve this answer
    
Yes, I know this and I referred to this class in my question. I need to override the private method that constructs the URL to the tiles though, and this is where I got stumped. –  mvexel Aug 10 '10 at 7:49

You can set proxy of iPhone, and see the http request, Maybe we can get the URL.

share|improve this answer
2  
Can you expand on this Answer? was flagged by stack exchange as a low answer quality see the FAQ –  Mapperz Oct 29 '12 at 13:37

Inherit from AGSTiledServiceLayer and implement this function:

-(NSURL*)urlForTileKey:(AGSTileKey *)key

That's all you need to do.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.