Leaflet Choropleth App

Access

A Leafletjs Choropleth web application is installed upon installation.

This application uses pg_featursrv to supply json for the map.

It can be access via the tab on the home page:

../_images/ChoroplethTab.png

It can also be access directly via url at:

http://domain.com/LeafletChoroDemo.html

Initialize

Go to /var/www/html/LeafletChoroDemo.html and edit line 155:

var full_url = “https://<YourIP>:9001/collections/public.countries/items.json?limit=100&continent=Europe”;

Change <YourIP> to your server IP or hostname.

Note: If you are not using SSL, update the line to use ‘HTTP’ and port to 9000

Usage

Once accessed using above, the app will appear as shown below:

../_images/ChoroplethApp.png