The Info Tool provides GetFeatureInfo support for WMTS. When you click on a WMTS layer with the info tool selected, MapInfo Pro displays information in the Info window about the features of the layer that you have retrieved from the WMTS server. By default, when you open a WMTS layer and add it to a map, it is selectable when it meets the following criteria:
- The WMTS server must support GetFeatureInfo.
- The WMTS server must return GetFeatureInfo data in a format that is supported by MapInfo Pro. These formats are text/plain and HTML.
- The WMTS servers must specify that the WMTS layers within the WMTS table can be queried.
The WMTS layer can also be made selectable using the MapBasic statement:
set map layer layer_id selectable on
After making the WMTS layer selectable, you can use the Info command (on the MAP tab, in the Options group, click Map Tools, and click Info). The WMTS table treeview in the Open WMTS Table and WMTS Table Properties dialog boxes display an Information icon next to layers that you can query to indicate that the Info tool will work on those layers.
The supported GetFeatureInfo formats include:
- HTML
- Text/plain
If the WMTS server supports both HTML and Text/Plain formats, MapInfo Pro will give you options to select the preferred view by radio buttons at the bottom right corner of the Info window. By default, MapInfo Pro display information in HTML format. HTML data is formatted by the server in a manner that may be easier to read compared to the data in the text/Plain format.
In some cases, the WMTS server may return an error when the user clicks on the map. Error messages are displayed in the info window itself. Examples of errors include:
- The WMTS Server does not support GetFeatureInfo requests.
- The WMTS Server does not return GetFeatureInfo data in a format supported by MapInfo Pro.
- The WMTS Server returned data in <returned-format> format rather than the requested format of <requested-format>
- Unable to retrieve feature information from the WMTS Server.