hungio / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

problem with two maps #156

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
i have two objects of class RMMapView 
       1 - is a openstreet mapView 
       2 - is satellite    mapSat
 and i make this : 
           when i change map type for Satellite:
      method one:
         [self.mapView removeFromSuperview];
         ,,,
         [self.view addSubview:self.mapSat]; 

and for openstreetmap
  method two:
          [self.mapSat removeFromSuperview];
          [self.view addSubview:self.mapView]; 

when map is zooming sometime  one of tiles is another map type

screenshot http://clip2net.com/page/m60097/8929056

how i can resolve this problem ?

Original issue reported on code.google.com by sngg...@gmail.com on 5 Nov 2010 at 1:24

GoogleCodeExporter commented 8 years ago
the problem resolved

Original comment by sngg...@gmail.com on 11 Nov 2010 at 11:20

GoogleCodeExporter commented 8 years ago
I have same problem.
I haven't yet solved this problem, but the problem will be caused by db cache.
I haven't met the problem at route-me with only memory cache.

Original comment by ikom...@gmail.com on 16 Nov 2010 at 4:48

GoogleCodeExporter commented 8 years ago
Hi snggrey, I haven't solve this problem. Could you tell me how could you 
resolve this problem?

Original comment by ikom...@gmail.com on 23 Nov 2010 at 8:53

GoogleCodeExporter commented 8 years ago
hey                               
use method       [self.mapView.contents setTileSource: newTileSouce  ];
                             [self.mapView setNeedsDisplay];
                         [self.mapView setNeedsLayout];

Original comment by sngg...@gmail.com on 3 Dec 2010 at 12:06

GoogleCodeExporter commented 8 years ago
thanks for your replay.

You mean you use only one mapView object and set another tileSource on changing 
mapType?

Original comment by ikom...@gmail.com on 14 Dec 2010 at 6:51

GoogleCodeExporter commented 8 years ago
yes . use only one object mapView. and set another tileSource

Original comment by sngg...@gmail.com on 15 Dec 2010 at 2:28