iOS SDK and Tiled package

2841
1
02-02-2012 05:55 AM
TonyGeorges
New Contributor
Hi all,


today i'm experiencing new AGSLocalTiledLayer with tiled packages created by Desktop 10.1 beta2.
If I choose a "classic" tiling scheme (ie Bing Maps,...) no problem to consume it with the iOS SDK.

But, if I use a custom tiling scheme, nothing appear on the map 😞

The problem is probably the spatialReference. When I unzip tile package, esriinfo/itemInfo.xml describe an extent in degrees and spatial ref name is RGF1993...which is in meters.
In the cache description, all is ok I think (v101/Layers/conf.xml)

If I change that to good coordinates it does not have any impact 😞

After that, I try to log some layer properties  and spatialReference has always an empty wkid and wkt when I load my tpk.

Maybe it is a limitation on iOS ? If so can you add it in the documentation ?
Maybe it is a bad practice in my code ?

AGSLocalTiledLayer *localTiledLayer = [[AGSLocalTiledLayer alloc] initWithName:@"myTpk.tpk"];

    NSLog(@"%d",localTiledLayer.spatialReference.wkid);
    NSLog(@"%@",localTiledLayer.spatialReference.wkt);
 
    
    //Add it to the map view
UIView<AGSLayerView>* lyr = [self.mapView addMapLayer:localTiledLayer withName:@"TPK"];



Maybe it is a bug in the iOS API ?

Thank you for your reply !


Tony
0 Kudos
1 Reply
NimeshJarecha
Esri Regular Contributor
If possible, can you please attach a sample TPK to the thread. I'll have a look at it.

Regards,
Nimesh
0 Kudos