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).
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.
data/data_species.txt
.data/data_mappoints.txt
.data/data_language.txt
.data/data_setting.txt
.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.
data_species.txt
— species listColumns (pipe-separated):
name | color | image
Cucak Kutilang (Pycnonotus aurigaster)
).#377eb8
)./images/
(e.g., images/PerkututJawa.jpg
).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).
data_mappoints.txt
— occurrence recordsColumns (pipe-separated, one record per line):
date | time | species | count | district | coord | habitat | location | activity
Field notes:
2025-08-21
or local format (keep one format consistently).HH:MM
(24h) or local format.name
used in data_species.txt
.1
).-1.481, 124.846
orN 01°28.717' E 124°53.518'
Semak
, Mangrove
.Terbang
, Foraging
.If you use the spreadsheet helper, it will export the right separators and coordinate text automatically.
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
...
[id]
for Bahasa Indonesia and [en]
for English.details.date
, scale.local
).Common keys you might edit:
appTitle
, legendTitle
, gmapsButton
mapDefault
, mapSatellite
, mapTerrain
details.date
, details.time
, details.count
, details.coord
data_setting.txt
— map & UI defaultsKeys (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:
local
uses [id]
; translate
uses [en]
.0
shows labels/roads overlay; 1
hides it.index.html
(some browsers block local file access; if so, use a simple local server)./
). Your site will be live at <username>.github.io/<repo>/
.data_mappoints.txt
has at least one row and the species names match data_species.txt
.#4daf4a
).images/Jalak.jpg
) and file name spelling.key = value
formatting with no extra characters.You may reuse this tool. If you distribute it, keep attribution and this README.