A basic implemetation of Web-GIS using Leaflet JS, GeoServer and Postgres with PostGIS plugin(extension)
- Postgres with PostGIS plugin is installed in your machine
- GeoServer is installed in your machine
- Database is already created using the PostGIS template.
- Shapefile is already loaded in the database and it is connected to the GeoServer
- Layer (caragaregion_municipalities) is already added to the GeoServer and style (active_cases.sld) is applied.
- Load map layers in tiles using Web Map Service (WMS) of GeoServer
- Style each layer features by active cases using SLD in GeoServer
- Filter layer by attributes such as municipality name, active cases, deaths and recoveries
- Zoom-in to the filtered features using Web Feature Service (WFS) of GeoServer
- Display legend using WMS GetLegendGraphic Request
Note: Change the URI accordingly e.g. if you use another URI on GeoServer, change the value of owsURI on index.html