Hexagon Geospatial
MENU

WebGIS Q&A

WebGIS enables powerful geospatial web applications and services that securely share your organization’s rich geospatial data, and provides tools to deeply examine spatial data and create value added products, on demand.
Showing results for 
Search instead for 
Do you mean 

Consumer Portal and subdomain

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

Question

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

Answer

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": "http://demo.hexagongeospatial.com/DemoWMTSRoma/service.svc/get",
      "type": "WMTS",
      "url": "http://{S}.hexagongeospatial.com/DemoWMTSRoma/service.svc/get",
      "subdomains": [
        "demo1",
        "demo2"
      ]
    },

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:

http://demo1.hexagongeospatial.com/DemoWMTSRoma/service.svc/get

http://demo2.hexagongeospatial.com/DemoWMTSRoma/service.svc/get

Contributors