atlas-component-geospatial

August 11, 2020 ยท View on GitHub

Geospatial support

Geospatial is an optional component that provides to build analyses utilizing locations and areas. To enable this component do the following:

  • first build WebAPI with geospatial enabled, following instructions from the README

  • clone or download sources from the Atlas Component Geospatial

  • and place them to the directory served by any HTTP server

    For example if you're using Apache and the /var/www/atlas is a Atlas root directory accessible by the http://yourserver.com/atlas, then place geospatial component into the /var/www/atlas/js/gis directory. Following configuration component would rely on these deployment environment.

  • Add the following to the config-local.js file:

  config.gisServiceUrl = 'http://yourserver.com/WebAPI/gis';
  config.tilesServerUrl = 'https://{s}.youtileserver.com';

  config.externalLibraries = [
    'http://yourserver.com/js/gis/cohort-report-geospatial/index.js',
    'http://yourserver.com/js/gis/person-map/index.js'
  ];

  • Now Geospatial features should be available on the Cohort's Report page and the Person Profile page