Add Map Entry
Field Values
The values for the database fields are shown below
ID - Map id (pk, shown only, cannot be updated)
name - Map name
Host - hostname or IP of PostGIS database
Database - database name
Schema - schema
Username - database username
Password - database username
Geom - database geom column
Metric - field to render colors (see below)
Table - database table
Lat - initial lat
Lon - initial lon
Zoom - initial zoom
Note
All database columns are character varying. .
Metric Field
The Metric field is the field which will be used for coloring the map.
This field can be a standard data column or a calculated column.
In the demo data (widgets.sql), the Metric column is calculated:
alter table public.wardinfo add column widgetsperward numeric GENERATED ALWAYS AS (round(widgets / POWER((perimeter)/4),2))) STORED
Warning
Leaflet generated GeoJson for the map. You should limit the amount of data and columns to prevent long load times.
Input New Entry
To add a new entry, click the “Add New” button as shown below.
Populate the fields as shown below.
Click the Save icon as shown below.