Is there any option in google map sdk to display the scale bar option in the bottom of google map in IOS? -
is there option in google map sdk display scale bar option in bottom of google map in ios? sample project given google not displaying mas scaling. need set yes or no api using google mp sdk display map scaling ios? screen shot attached
i not sure in google map sdk, apple mapkit provides span can calculate using delegate method. if can same using google map sdk, should work.
- (void)mapview:(mkmapview *)mapview regiondidchangeanimated:(bool)animated { mkcoordinatespan mapspan = mapview.region.span; nsstring * mapscalestring = [nsstring stringwithformat:@" 1 = ~110 km -> %f = ~ %f km", mapspan.latitudedelta, mapspan.latitudedelta*110]; self.mapscalelabel.text = mapscalestring;
}
Comments
Post a Comment