Tile server basemaps for MapInfo

Ever needed a stylish basemap to display under some map data but have no idea where to look or how to even get it into MapInfo?

Well worry no more, try this:

basemaps

With the click of a button you can quickly add one of many stylish and freely available basemaps to your map.

The basemaps come from various providers in tile format which with a bit of MapBasic can be converted into TAB files. I have selected a few of my favourites from this rather large list of basemaps and added them to a handy toolbar menu.
The menu is based on the excellent dynamic XML menu example by James Moloney. This means you, the user, can easily add or remove basemaps from the menu by editing a simple XML file.

Usage:

Download, extract the zip file and run the MBX in MapInfo 10.5 or above.
You’ll now have a ‘Basemaps’ option on the toolbar, so get clicking!

The only thing you need to be aware of is there must be a folder called ‘TABs’ in the same directory as the MBX. This is where the TAB files are created so will fail if it doesn’t exist. You can take copies of or move these TABs and they will still work without this basemaps tool.

To add or remove basemaps from the menu, edit Basemaps.xml and then re-run the tool. Hopefully the structure is self explanatory.
You can find all the values you need as well as seeing a preview of each basemap here.

Any issues, leave a comment below.

Licensing:

The tool is released under the GNU GPL license so is free to copy, modify or distribute however you please.
All basemaps are free to use and should already include all the correct attribution for use in MapInfo. Please check with the individual providers if you plan to print or distribute the maps to ensure you’re not in breach of their licensing agreements.
HERE and Esri maps require registration to use, please see here for more info.

Download:

Due to changes in MapInfo 12.5, there are now 2 versions of the tool:
[wpdm_package id=’190′]Includes sourcecode, compiled MBX (v9.5) and config XML file.

[wpdm_package id=’191′]Includes sourcecode, compiled MBX (v12.5) and config XML file.

Known issues / limitations:

– Tile Server support was added in v10.5 of MapInfo. Therefore, while the tool may run in older versions, you will not be able to open any of the basemaps/TAB files.

– Some basemaps at certain zoom levels are pixelated. This is related to the tile height setting, the size of the MapInfo map window and the particular basemap you are using. You can modify the tile height setting in the sourcecode and recompile but I found ‘230’ seemed to give ok results for most maps. I also noticed resizing the map window seemed to improve the quality too.

– Some basemaps seem to be missing tiles at certain zoom levels. Not much can be done about this besides try a different zoom level or a different basemap.

– Some basemaps give an error at certain zoom levels. This means there are no tiles at this level. Why MapInfo returns an error while for other basemaps it simply displays no basemap, I don’t know.

– The OpenWeatherMap layers appear black. This is because MapInfo doesn’t deal with transparency unless you tell it to: Layer Properties > Style override > Transparent.

– Messy code, haha. Could do with a tidy up and more comments, but that’s what v1.1 is for.