开发者

Map hasn`t been displayed

开发者 https://www.devze.com 2023-02-25 13:25 出处:网络
please i have a problem with Map displaying, although, in the simulator it`s displayed well, on the iPhone i see this (the left one is with Hybrid mode and the right is with standard mode):

please i have a problem with Map displaying, although, in the simulator it`s displayed well, on the iPhone i see this (the left one is with Hybrid mode and the right is with standard mode):

Map hasn`t been displayed

here is some of my code :

-开发者_开发百科 (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{

    location = newLocation.coordinate;


    MKCoordinateSpan span;
    if (shouldAdjustZoom) {
        //use the manually defined span
        span.latitudeDelta=.005;
        span.longitudeDelta=.005;
        mapRegion.span = span;
    }
    else {
        mapRegion=mapView.region;
        mapRegion.center=newLocation.coordinate;
        mapView.region=mapRegion;
    }

    // Apply new coordinates
    [mapView setRegion:mapRegion animated:TRUE];

}


The blue color actually makes me think you are in the middle of the ocean. Have you checked your center point?

0

精彩评论

暂无评论...
验证码 换一张
取 消