# Bing Statellite

**URL:** <https://mapwindow.discourse.group/t/bing-statellite/969>\
**Category:** Uncategorized\
**Created:** [April 16, 2021, 11:39am UTC](https://mapwindow.discourse.group/t/bing-statellite/969 "2021-04-16T11:39:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![colleen](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@colleen](https://mapwindow.discourse.group/u/colleen)\
**Post date:** [April 16, 2021, 11:39am UTC](https://mapwindow.discourse.group/t/bing-statellite/969/1 "2021-04-16T11:39:13Z")

</div>

Hi

Can anyone provide an example of how to get the Bing Satellite map to load at the correct x/y coords and be able to zoom in and out like I can do with OpenStreetMaps eg  
If providers.Add(providerID, “Custom TMS provider”, “https://{switch:a,b,c}.tile.openstreetmap.org/{zoom}/{x}/{y}.png”, tkTileProjection.SphericalMercator, 0, 18) = False Then

I have a Bing Licence key for Windows App as I am using MS Access

Thanks

Colleen

---

<div class="post-metadata">

**Author:** ![dgreenewalt](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@dgreenewalt](https://mapwindow.discourse.group/u/dgreenewalt)\
**Post date:** [April 19, 2021, 6:52pm UTC](https://mapwindow.discourse.group/t/bing-statellite/969/2 "2021-04-19T18:52:31Z")

</div>

Hi Colleen,

This is what I used in [VB.net](http://VB.net):

```
        Map1.TileProvider = MapWinGIS.tkTileProvider.BingSatellite
        gs.BingApiKey = "Ah... ....4EKu"
        Map1.KnownExtents = MapWinGIS.tkKnownExtents.keUSA
        Map1.Tiles.DoCaching(MapWinGIS.tkCacheType.Disk) = True
        Map1.Tiles.UseCache(MapWinGIS.tkCacheType.Disk) = True
        Map1.Tiles.Visible = True

```

Does that help?  
David

---

<div class="post-metadata">

**Author:** ![colleen](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@colleen](https://mapwindow.discourse.group/u/colleen)\
**Post date:** [April 20, 2021, 7:19am UTC](https://mapwindow.discourse.group/t/bing-statellite/969/3 "2021-04-20T07:19:06Z")

</div>

Hi

Thanks so much for your help, I had something similar but kept giving me an error message. Still not quite sure what is wrong, however I have combined it with what you have and it now works

Previous

```auto
Dim gs As GlobalSettings
Set gs = New GlobalSettings
With gs
.BingApiKey = "wJs.....HyplXk"
.AllowProjectionMismatch = False
.ReprojectLayersOnAdding = True
.AllowLayersWithIncompleteReprojection = True
End With
Map1.Tiles.providerID = tkTileProvider.BingSatellite
Map1.Tiles.providers.Add tkTileProvider.BingSatellite

```

Working

```auto
Map1.TileProvider = MapWinGIS.tkTileProvider.BingSatellite
Dim gs As GlobalSettings
Set gs = New GlobalSettings
With gs
.BingApiKey = "wJsSkn-..kOiH3RMOJRqkl-yF_ugm6n4-ujMsWTBHyplXk"
.AllowProjectionMismatch = False
.ReprojectLayersOnAdding = True
.AllowLayersWithIncompleteReprojection = True
End With
Map1.Tiles.DoCaching(MapWinGIS.tkCacheType.Disk) = True
Map1.Tiles.UseCache(MapWinGIS.tkCacheType.Disk) = True
Map1.Tiles.Visible = True

```

Regards

Colleen

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [January 13, 2022, 3:44pm UTC](https://mapwindow.discourse.group/t/bing-statellite/969/4 "2022-01-13T15:44:42Z")

</div>

The difference is that in the working part you select the existing BingSatellite provider and in your init version you were adding a new provider with the same providerId.

Obviously the working example is how you should do it.

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [January 13, 2022, 3:44pm UTC](https://mapwindow.discourse.group/t/bing-statellite/969/5 "2022-01-13T15:44:47Z")

</div>


