Select to view content in your preferred language

Bing Maps in BaseMapGallery

540
2
Jump to solution
09-17-2012 11:18 AM
MichaelLacy
Occasional Contributor
How do you get Bing Maps to work in the BaseMapGallery tool?  In the Tools.xml file, the default configuration includes some Bing Maps (see below), but they don't show up.  I did manage to get them to appear in the gallery by changing the BaseMapType to Tile/Road/Aerial/Hybrid, but then I get an error when I click on it:

There was an error connecting to http://dev.virtualearth.net/webservices/v1/imageryservice/imageryservice.svc.  Please check the URL, make sure the service is running, and try again.

When creating a TileLayer in code, no URL is necessary.  I tried putting my Bing Maps key in various places, but I still couldn't get it to work.  What am I missing?

Thanks,
Mike


<BaseMapInfo>   <DisplayName>Bing Maps Roads</DisplayName>   <Name>Roads</Name>   <ThumbnailImage>Images/basemaps/bingmaps_roads.png</ThumbnailImage>   <Url>http://dev.virtualearth.net/webservices/v1/imageryservice/imageryservice.svc</Url>   <BaseMapType>BingMaps</BaseMapType> </BaseMapInfo> <BaseMapInfo>   <DisplayName>Bing Maps Aerial</DisplayName>   <Name>Aerial</Name>   <ThumbnailImage>Images/basemaps/bingmaps_aerial.png</ThumbnailImage>   <Url>http://dev.virtualearth.net/webservices/v1/imageryservice/imageryservice.svc</Url>   <BaseMapType>BingMaps</BaseMapType> </BaseMapInfo> <BaseMapInfo>   <DisplayName>Bing Maps Hybrid</DisplayName>   <Name>Hybrid</Name>   <ThumbnailImage>Images/basemaps/bingmaps_hybrid.png</ThumbnailImage>   <Url>http://dev.virtualearth.net/webservices/v1/imageryservice/imageryservice.svc</Url>   <BaseMapType>BingMaps</BaseMapType> </BaseMapInfo>
0 Kudos
1 Solution

Accepted Solutions
KatherineDalton
Esri Regular Contributor
Hi Michael,

Did you put your Bing Maps App ID in the Application Builder - Application Settings?

Once you have entered your key, the Bing Maps Road, Aerial, and Hybrid basemaps are available for use.

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™

View solution in original post

0 Kudos
2 Replies
KatherineDalton
Esri Regular Contributor
Hi Michael,

Did you put your Bing Maps App ID in the Application Builder - Application Settings?

Once you have entered your key, the Bing Maps Road, Aerial, and Hybrid basemaps are available for use.

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
MichaelLacy
Occasional Contributor
No, I did not.  We aren't using the application builder -- deploying from Visual Studio -- but I see where to put it in the Application.xml config file.  Thanks!
0 Kudos