Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:23.614328
- longitude:58.545284
- zoom:18];
- mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera];
- [mapView_ setMinZoom:5 maxZoom:19];
- //mapView_.buildingsEnabled = NO;
- //mapView_.indoorEnabled = NO;
- mapView_.mapType = kGMSTypeHybrid;
- self.view = mapView_;
- tileLayer_.map = nil;
- // Create a new GMSTileLayer with the new floor choice.
- GMSTileURLConstructor urls = ^(NSUInteger x, NSUInteger y, NSUInteger zoom) {
- NSString *url = [NSString stringWithFormat:@"http://www.example.com/%tu/%tu/%tu.png", zoom, x, y];
- NSLog(@"URL: %@",url);
- return [NSURL URLWithString:url];
- };
- tileLayer_ = [GMSURLTileLayer tileLayerWithURLConstructor:urls];
- tileLayer_.map = mapView_;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement