SkechLayer load down tiled Map

678
2
Jump to solution
05-02-2012 05:41 AM
LucaAlferi1
New Contributor
Hi
In my application i use different base map. When application is loaded for the first time, skechLayer draw up tiled map (OK), but when i change the base map the skechLayer draws down the tiled map.
i used this code:
AGSGraphicsLayer* graphicsLayer2 = [AGSGraphicsLayer graphicsLayer];
[self.mapView addMapLayer:graphicsLayer2 withName:@"Graphics Layer 2"];
    self.sketchLayer = [AGSSketchGraphicsLayer graphicsLayer];
    [self.mapView addMapLayer:self.sketchLayer withName:@"Sketch layer"];

Why?
Help me please
0 Kudos
1 Solution

Accepted Solutions
NimeshJarecha
Esri Regular Contributor
How you are changing the base map? You should use AGSMapView's insertMapLayer:withName:atIndex: method and insert base layer at index 0.

Regards,
Nimesh

View solution in original post

0 Kudos
2 Replies
NimeshJarecha
Esri Regular Contributor
How you are changing the base map? You should use AGSMapView's insertMapLayer:withName:atIndex: method and insert base layer at index 0.

Regards,
Nimesh
0 Kudos
LucaAlferi1
New Contributor
How you are chaining the base map? You should use AGSMapView's insertMapLayer:withName:atIndex: method and insert base layer at index 0.

Regards,
Nimesh

Grazie Grazie Grazie (Thanks Thanks Thanks)
it now works fine
0 Kudos