Bing Maps stay blank

3249
11
07-09-2010 01:27 AM
FrédéricHUMBERT-DROZ
New Contributor
Hi everybody,

I'm trying to use the Bing map layer, but until now I've not been able to make it work. I went on the Bing map url called "Getting Started with Bing API" and created my app id. Then I initialize the AGSBingMapLayer object like that:

AGSBingMapLayer *bingMap = [[AGSBingMapLayer alloc]
  initWithAppID:@"3XXXX0929075CXXXD042FXXX2608B6E7D673XXXX"
  style:kAGSBingMapLayerStyleRoad];

[self.mapView addMapLayer:bingMap withName:@"Bing"];

[bingMap release];


Unfortunately it doesn't work. It seems I missed something, but What ?

Best regards,

Fred
0 Kudos
11 Replies
ChanceYohman
New Contributor
I had the same issue with the last release of the API. I'm getting around to trying it again.
0 Kudos
NimeshJarecha
Esri Regular Contributor
Here is the code to add bing map...

AGSLayer *roadLayer = [[AGSBingMapLayer alloc] initWithAppID:@"*****" style:kAGSBingMapLayerStyleRoad];
[self.mapView addMapLayer:roadLayer withName:@"Road Bing Maps Layer"];
[roadLayer release];

Regards,
Nimesh
0 Kudos
FrédéricHUMBERT-DROZ
New Contributor
Hi Nimesh,

Even with this code, the bing layer stays blank... don't know what I do wrong..

Here is the code to add bing map...

AGSLayer *roadLayer = [[AGSBingMapLayer alloc] initWithAppID:@"*****" style:kAGSBingMapLayerStyleRoad];
[self.mapView addMapLayer:roadLayer withName:@"Road Bing Maps Layer"];
[roadLayer release];

Regards,
Nimesh
0 Kudos
NimeshJarecha
Esri Regular Contributor
Hi Fred,

Is there any other base layer in the map view? If yes, it's spatial reference other than bing maps (Web Mercator)?

Try loading only bing map in the map view and see if it show up.

Regards,
Nimesh
0 Kudos
FrédéricHUMBERT-DROZ
New Contributor
Hi Nimesh,

I tried to create a new project without any other layer and it's the same, the map stays blank without loading the bing tiles. Maybe I do something wrong when creating the appId ?!?

Regards,

Fred
0 Kudos
NimeshJarecha
Esri Regular Contributor
That may be the only reason left for not displaying map. However, if you load only dynamic or tiled layer instead of bing map in the same app then it works?

Regards,
Nimesh
0 Kudos
JohnHarvey
New Contributor
I am getting sick of these "samples" wasting my time. I don't know why, but copy and paste ESRIs code into C# Silverlight project and get a blank page. Damn!
0 Kudos
FrédéricHUMBERT-DROZ
New Contributor
That may be the only reason left for not displaying map. However, if you load only dynamic or tiled layer instead of bing map in the same app then it works?

Regards,
Nimesh



Yes, it happens only with Bing maps... Other sources are drawn correctly
0 Kudos
AntonHughes
New Contributor
Hi

Did you ever get it to work?

I'm getting the same blankness when trying to use Bing.
0 Kudos