Bing or Google Maps Base?

2029
2
10-04-2010 08:33 PM
BrianKrzys
New Contributor III
Does anybody know if it's possible to use either Bing or Google Maps as the base layer with the iOS API?  If so, how is it done?  Reading through the forum posts looks like Bing should work, but there is a longer thread that never seemed to reach a point of resolution with Bing. Ideally I'm after more of the "terrain" view from either service.  The ArcGIS Online stuff is great, but for a lot of the areas where we work there is still a fair bit more detail from the other sources.

Thanks, Brian.
0 Kudos
2 Replies
NimeshJarecha
Esri Regular Contributor
You can either use AGSBingMapLayer or AGSOpenStreetMapLayer as a base layer. It should just work.

Regards,
Nimesh
0 Kudos
BrianKrzys
New Contributor III
Just following-up on this one it looks like the Bing base maps work fine via the other thread on the subject.  If interested/needed the short code for an OpenStreetMap layer is below.

Brian.

  //
  // ----- OpenStreetMap base layer
  //
  AGSOpenStreetMapLayer *baseLayer = [[AGSOpenStreetMapLayer alloc] init];
  [self.mapView addMapLayer:baseLayer withName:@"OpenStreetMap"];
  [self.mapView zoomToEnvelope:[baseLayer fullEnvelope] animated:NO];
  [baseLayer release];
0 Kudos