Loading...

route-me-map@googlegroups.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [route-me] Re: Loading map in background thread Jaroslav Oo Tue Feb 21 13:00:11 2012

Checked it now: tiles able has one index: zoom_level,tile_column,tile_row


On Feb 20, 7:11 am, Jaroslav <[EMAIL PROTECTED]> wrote:
 > I'm using offline maps from sqlite database and loading 100Mb of maps
 > takes several seconds. How could I kame view controller visible with
 > some type of indicator while view controller is loading map? I tried
 > using
 > [self performSelectorInBackground:@selector(loadMap) withObject:nil];
 > in viewDidLoad and then in loadMap
 > [self performSelectorOnMainThread:@selector(showMap) withObject:nil
 > waitUntilDone:NO];
 > with
 > - (void) showMap{
 >     self.view = mapView;
 >
 > }
 >
 > Map seems to be loaded but I doesn't get displayed until I exit from
 > this view controller and go back to it again.
 >
 > Maybe someone came to solution how to show user that map is currently
 > loading?

On Tue, Feb 21, 2012 at 10:00 PM, Justin R. Miller
<[EMAIL PROTECTED]> wrote:
> It seems suspect to me that your map is taking several seconds to
> load. What kind of SQLite backend are you using? Is it indexed
> properly?
>
> --
> Justin R. Miller
> Development Seed, Inc.
> [EMAIL PROTECTED]
>
> On Feb 20, 7:11 am, Jaroslav <[EMAIL PROTECTED]> wrote:
>> I'm using offline maps from sqlite database and loading 100Mb of maps
>> takes several seconds. How could I kame view controller visible with
>> some type of indicator while view controller is loading map? I tried
>> using
>> [self performSelectorInBackground:@selector(loadMap) withObject:nil];
>> in viewDidLoad and then in loadMap
>> [self performSelectorOnMainThread:@selector(showMap) withObject:nil
>> waitUntilDone:NO];
>> with
>> - (void) showMap{
>>     self.view = mapView;
>>
>> }
>>
>> Map seems to be loaded but I doesn't get displayed until I exit from
>> this view controller and go back to it again.
>>
>> Maybe someone came to solution how to show user that map is currently
>> loading?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "route-me" group.
> To post to this group, send email to [EMAIL PROTECTED]
> To unsubscribe from this group, send email to [EMAIL PROTECTED]
> For more options, visit this group at 
> http://groups.google.com/group/route-me-map?hl=en.
>

-- 
Pagarbiai,
Jaroslav Ozevič,
+37065350120
http://www.linkedin.com/in/jaroslavozevic

-- 
You received this message because you are subscribed to the Google Groups 
"route-me" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/route-me-map?hl=en.