# Tile Providers don´t show content in map control Access Form

**URL:** <https://mapwindow.discourse.group/t/tile-providers-don-t-show-content-in-map-control-access-form/331>\
**Category:** MapWinGIS\
**Created:** [November 5, 2019, 1:26pm UTC](https://mapwindow.discourse.group/t/tile-providers-don-t-show-content-in-map-control-access-form/331 "2019-11-05T13:26:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarichal](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@amarichal](https://mapwindow.discourse.group/u/amarichal)\
**Post date:** [November 5, 2019, 1:26pm UTC](https://mapwindow.discourse.group/t/tile-providers-don-t-show-content-in-map-control-access-form/331/1 "2019-11-05T13:26:24Z")

</div>

Hello everyone:

Years ago, I have been using the MapwinGIS ocx component, in MSAccess forms, with VBA code.  
I have been able to load layers, and show them on a provider (OpenStreetMap, GoogleMaps, Googlertain, etc)

For some time, when assigning to my map object the usual code, the content in the viewer is not shown, under the loaded shape.

**Map0.TileProvider = tkTileProvider.OpenStreetMap**

I can no longer freely load these providers?

Thank you

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [November 5, 2019, 5:07pm UTC](https://mapwindow.discourse.group/t/tile-providers-don-t-show-content-in-map-control-access-form/331/2 "2019-11-05T17:07:27Z")

</div>

Hello @amarichal.

1. Have you updated to a recent version of MapWinGIS?
2. Are you getting an error message or any indication why it cannot be loaded?

Thank you.  
Jerry.

---

<div class="post-metadata">

**Author:** ![amarichal](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@amarichal](https://mapwindow.discourse.group/u/amarichal)\
**Post date:** [November 6, 2019, 8:43am UTC](https://mapwindow.discourse.group/t/tile-providers-don-t-show-content-in-map-control-access-form/331/3 "2019-11-06T08:43:40Z")

</div>

Thanks, Jerry.

1. Yes, I updated to a recents versions of MapWinGIS, 5.0 and 5.1

2. I haven’t received any messages during execution

I thought I could use tile providers in the new versions.

Thanks again  
amarichal

---

<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:** [November 6, 2019, 1:09pm UTC](https://mapwindow.discourse.group/t/tile-providers-don-t-show-content-in-map-control-access-form/331/4 "2019-11-06T13:09:27Z")

</div>

The OSM tiles are still freely available.  
You need at least these lines to get the tiles:

```
AxMap.Projection = tkMapProjection.PROJECTION_GOOGLE_MERCATOR;
AxMap.TileProvider = tkTileProvider.OpenStreetMap;
AxMap.KnownExtents = tkKnownExtents.keUSA;

```

Of course KnownExtents can be changed to your needs.  
You can also set [Tiles.LogFilename](https://www.mapwindow.org/documentation/mapwingis4.9/class_tiles.html#a1ae5ca765b1ef0e97092ea41df6a0a01) and see if you have any traffic or errors.

Here are some more explanations: [Tiles class reference](https://www.mapwindow.org/documentation/mapwingis4.9/class_tiles.html#details)

---

<div class="post-metadata">

**Author:** ![amarichal](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@amarichal](https://mapwindow.discourse.group/u/amarichal)\
**Post date:** [November 11, 2019, 9:31am UTC](https://mapwindow.discourse.group/t/tile-providers-don-t-show-content-in-map-control-access-form/331/5 "2019-11-11T09:31:31Z")

</div>

Thanks again.

Sorry Paul, I can’t visualize with the lines of code provided OSM tiles, the map control appears empty.

Only OSM tiles are still freely available, none from Google ?

Won’t other tile providers work in previous versions of MapWinGIS activex?

---

<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:** [November 13, 2019, 10:58am UTC](https://mapwindow.discourse.group/t/tile-providers-don-t-show-content-in-map-control-access-form/331/6 "2019-11-13T10:58:34Z")

</div>

Bing is also available, but you need an API key.  
Google doesn’t allow access anymore for years now. You could of course create a custom provider and add the urls of Google to see if they still work.

And can you post parts of the tiles logging file?

---

<div class="post-metadata">

**Author:** ![MikeGibson](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@MikeGibson](https://mapwindow.discourse.group/u/MikeGibson)\
**Post date:** [November 20, 2019, 1:01pm UTC](https://mapwindow.discourse.group/t/tile-providers-don-t-show-content-in-map-control-access-form/331/7 "2019-11-20T13:01:47Z")

</div>

I’ve recently had to update, and I seemed to detect a similar problem.  
similar thread: [Tile Server for open street map - #3 by pmeems](https://mapwindow.discourse.group/t/tile-server-for-open-street-map/225/3)

using the standard code

> AxMap.Projection = tkMapProjection.PROJECTION\_GOOGLE\_MERCATOR;  
> AxMap.TileProvider = tkTileProvider.OpenStreetMap;  
> AxMap.KnownExtents = tkKnownExtents.keUSA;

Seems to work, if not VERY slowly. I did have some problems when I’m changing the projection.

---

<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 5, 2022, 3:08pm UTC](https://mapwindow.discourse.group/t/tile-providers-don-t-show-content-in-map-control-access-form/331/8 "2022-01-05T15:08:55Z")

</div>


