QlikMapsQlikMapsDocumentation for QlikView QlikMaps for MultilayerQlikMaps for Multilayer: Tile (WMTS) Layers

QlikMaps for Multilayer: Tile (WMTS) Layers

Using the Tile (WMTS) Layers control, you can add custom Tile or WMTS layers and custom popups to your map.

For more information on Tile (WMTS) layers, visit QlikMaps for Multilayer: Overview.

NOTE: Because you are relying on publicly-available Tile/WMTS servers, data availability is not a guarantee. Likewise, some servers provide HTTPS connections while others are only HTTP; this may cause issues in some environments.

Tile (WMTS) Layers

Tile (WMTS) Layers


This is where you add the expression for the Tile or WMTS layer logic.

NOTE: The expression requires more than a simple URL, please refer to the template below for the correct syntax.

Layer expression

This is the template from the Layer expression, repeated here for your reference.

This template creates a Tile layer that shows median age for varying census levels, depending on map zoom.  It uses the following parameters: 
  "url": The URL in quotes for a Tile Server.  (MANDATORY)
         The URL should include {x}, {y}, and {z} parameters in the correct order expected by the tile server.
   An optional {s} paramter can also be used within the URL.
  "name": The name in quotes that will appear in the layer selector.  It should be a unique name.  (MANDATORY)
  "isDefault": Tells QlikMaps whether or not show the layer by default.  Should be "yes" or "no" in quotes.  (OPTIONAL, defaults to "no")
Example 1:
"url": "http://services.arcgisonline.com/arcgis/rest/services/Demographics/USA_Median_Age/MapServer/tile/{z}/{y}/{x}",
"name": "Median Age",
"isDefault": "on"

Example 2:
"url": "http://maps.csc.noaa.gov/arcgis/rest/services/Hurricanes/AllHurricanes/MapServer/tile/{z}/{y}/{x}",
"isDefault": "off"

Example 3:
"url": "http://{s}.tile.stamen.com/watercolor/{z}/{x}/{y}.jpg",
"isDefault": "off"


Because some HTTPS environments (i.e. accessed through AccessPoint) may not load HTTP or HTTPS content, you may need to account for that in your Tile/WMTS expression. Below is an expression that returns an HTTPS link when loaded in AccessPoint, and an HTTP link when loaded in the Desktop client.

=if( Index( DocumentPath(), '\') = 0,
'"url": "https://services.arcgisonline.com/arcgis/rest/services/Demographics/USA_Median_Age/MapServer/tile/{z}/{y}/{x}",
"name": "Median Age",
"isDefault": "off"'
'"url": "http://services.arcgisonline.com/arcgis/rest/services/Demographics/USA_Median_Age/MapServer/tile/{z}/{y}/{x}",
"name": "Median Age",
"isDefault": "off"'


This is where you add the Popup expression.

NOTE: This expression must return a valid URL, please refer to the template for information on creating a valid URL.

NOTE: The popup logic will request the "NAME" field, whether it is in your expression or not.

Popup template

This is the template from the Popup expression, repeated here for your reference.

This template uses a REST query to create a popup for the Tile (WMTS) layer.  
QlikMaps will execute the REST query based upon the point a user clicks on.  
Use the "outfields" parameter in the URL to control what fields appear in the popup.  Set "outfields" = "*" to display all available fields.

Example 1 - Show all available fields in popup:
Example 2: - Show TOTPOP_CY and MEDAGE_CY fields in popuphttp://services.arcgisonline.com/arcgis/rest/services/Demographics/USA_Median_Age/MapServer/2/query?outFields=TOTPOP_CY,MEDAGE_CY*/