Showing results for 
Search instead for 
Do you mean 

Consumer Portal and subdomain

by Technical Evangelist on ‎02-19-2016 10:14 AM - edited on ‎04-13-2017 04:57 AM by Technical Evangelist (514 Views)


Is there a way to speed up the WMTS services in Consumer Portal?


Subdomains are strongly recommended for tile services (WMTS) being used by Consumer Portal so that Consumer Portal can request and obtain more tiles simultaneously without being hampered by the browser constraint on the number of requests that can be sent to the same domain.  The number of simultaneous requests to the same domain is 3 for IE and 5 for Chrome, therefore if the map consists of 30 tiles the time for obtaining whole map will take considerably longer if subdomains are not setup.


Procedure to setup subdomains in Consumer Portal:

In Consumer Portal instance folder you will find a file called /data/starting_wsp.json

In this file you have to find WMTS entry under “services”. It should look something like:


      "id": "6a1fcdad-25c0-4d8e-ae46-6e6576c30b1a",
      "name": "",
      "type": "WMTS",
      "url": "http://{S}",
      "subdomains": [

The "url" property has a “{S}” placeholder. This placeholder is populated by values taken from a “subdomains” array. If you add more entries into the "subdomains" array, the map adapter will use them alternately.


In this example tiles will be downloaded from the following URLs: