biodiversity-webmap-template

Simple Biodiversity Web Map — Blank Template

This folder is a starter kit for publishing a simple species-occurrence web map.
It’s a static site: open index.html and the app reads four plain-text files in /data/ to build the map (no server, no database).

Folder structure

index.html
assets/
css/styles.css
js/app.js
data/
data_species.txt
data_mappoints.txt
data_language.txt
data_setting.txt
images/
(put species photos/icons here; referenced from data_species.txt)

Tip: Keep image files small (≤200–400 KB each) for fast loading. Use relative paths like images/bird.jpg. or anyfolder/url that you want.


Quick start

  1. Add species rows to data/data_species.txt.
  2. Add observation rows to data/data_mappoints.txt.
  3. (Optional) Translate labels in data/data_language.txt.
  4. Adjust defaults (zoom, theme, basemap) in data/data_setting.txt.
  5. Open index.html locally (double-click) or publish with GitHub Pages.

If you prepare data in a spreadsheet, use the helper tools in /tools/ (e.g., xlsx-to-txt or csv-to-txt) to export the exact text format this app expects.


The four data files (formats & examples)

1) data_species.txt — species list

Columns (pipe-separated):

name | color | image

Example rows:

Cucak Kutilang (Pycnonotus aurigaster) | #e41a1c | images/CucakKutilang.jpg
Perkutut Jawa (Geopelia striata) | #377eb8 | images/PerkututJawa.jpg

The app only displays species that actually appear in data_mappoints.txt (empty species won’t show).


2) data_mappoints.txt — occurrence records

Columns (pipe-separated, one record per line):

date | time | species | count | district | coord | habitat | location | activity

Field notes:

If you use the spreadsheet helper, it will export the right separators and coordinate text automatically.


3) data_language.txt — UI text (multilingual)

This file has language blocks and key=value pairs. Default blocks:

[id]
appTitle=Informasi Sebaran Burung di Kota Manado
...
[en]
appTitle=Birds Distribution Information in Manado
...

Common keys you might edit:


4) data_setting.txt — map & UI defaults

Keys (one per line):

scale = 12 # initial zoom (12≈city, 15≈neighborhood)
theme = light # "light" or "dark"
language = local # "local" (id) or "translate" (en)
mapType = default # "default" | "satellite" | "terrain"
showImages = true # true/false | yes/no | 1/0
showRoad = 1 # 0=show road labels, 1=hide labels

Guidance:


Publishing


Troubleshooting


Credits & license

You may reuse this tool. If you distribute it, keep attribution and this README.

GitHub Pages License: MIT