swap between toe tiled map layers

1589
3
07-14-2010 05:04 AM
binyamintrachtman
New Contributor
hello everyone

i have two tiled map layers and i want to change the current tiled map layer viewed
how can i do this?
0 Kudos
3 Replies
NoureddineEl-zaatari
New Contributor
i think you can do that by using two mobile services, configure each one to the tiles you have, and set the map data sources accordingly, to the one you want to get it displayed..

you can do it through code..

let me know if u need any help
0 Kudos
binyamintrachtman
New Contributor
i think you can do that by using two mobile services, configure each one to the tiles you have, and set the map data sources accordingly, to the one you want to get it displayed..

you can do it through code..

let me know if u need any help


i cant find any map property nor method who refers to the map data sources;

can you please add a code  sample
0 Kudos
binyamintrachtman
New Contributor
if you have tow tild map layers 1-tiledStreetMapLayer 2-tiledSateliteMapLayer and in the beginning the tiledStreetMapLayer  is on and you want to change the tield map layer to the tiledSateliteMapLayer
this is the solution

[self.mapView insertMapLayer:tiledSateliteMapLayer withName:@"Satelite Map Layer" atIndex:0];
[self.mapView removeMapLayerWithName:@"street Map Layer"];
0 Kudos