Commit Graph

92 Commits

Author SHA1 Message Date
79944180d5 Added language codes for each language, add some testing text to determine if I can draw based on lat/long 2025-03-02 20:08:13 -05:00
6cd33ac06d Add noto fonts (unicode glyph support); use HTMX to replace translations on map; pointer-events for languageText to help select a state on the map 2025-03-02 20:07:09 -05:00
e60da27cd5 New file - updates translations on map 2025-03-02 20:05:56 -05:00
c57de2492e Added Go translation server - send requests to Google Translate API 2025-03-02 20:05:40 -05:00
5f8264cda8 Store language text instead of district text 2025-02-27 17:45:53 -05:00
73149275fd Added a form, added some more styling 2025-02-27 17:45:30 -05:00
c7876fea3f Added Awadhi language boundary 2025-02-27 11:17:56 -05:00
d757454319 Added Awadhi language and language color 2025-02-27 11:12:18 -05:00
53f8c63c2d Added Awadhi language 2025-02-27 11:12:07 -05:00
6532036c73 Removed turf JS testing file (I have it implemented) 2025-02-27 09:47:27 -05:00
5584374dea Updated JSON with Sindhi and Santali language boundaries 2025-02-27 09:36:46 -05:00
f43460e94b Added Santali and Sindhi languages; removed 'try ... catch' block because the function shouldn't error 2025-02-27 09:36:28 -05:00
ce89a74e70 Added a transparent fill, so that the language boundary can be 'hovered' on; added a hover action 2025-02-27 09:35:24 -05:00
f9cc824e3e Updated language borders with Sindhi and Santali 2025-02-27 09:34:48 -05:00
0aa425e6d1 Copied generated JSON data into a file, added it into the districts JSON file and saved the result to a new file 2025-02-27 06:49:22 -05:00
625b1d1377 Since language boundaries are now loaded from json, I can detect them and apply the right CSS class; removed JSON generation code 2025-02-27 06:48:07 -05:00
5fc15a2c5c Increase stroke width for language boundaries 2025-02-27 06:47:27 -05:00
17267b11ac unminified 2025-02-26 22:39:43 -05:00
4789ce8ac4 Finally finished adding language boundaries - next step: export them to a file so that they don't have to be recomputed each time 2025-02-26 22:39:19 -05:00
6d0a1a3c7c Started testing some stuff 2025-02-26 18:29:18 -05:00
c4e28998c5 Added some CSS for language boundaries 2025-02-26 18:28:59 -05:00
adb216f67f Working on defining a 'language' boundary, separate from state and district boundaries 2025-02-26 16:31:18 -05:00
216e5ca74a Added function to get the outer boundary of the districts, based on language 2025-02-26 14:51:40 -05:00
c98af5a5ae Draw states after districts; add 'fill: none' CSS to states; store a map of color to all features with that color 2025-02-26 12:09:49 -05:00
c2df272fe6 Added testing file 2025-02-26 11:00:05 -05:00
824a92029d Renamed colors; added district colors 2025-02-26 10:59:45 -05:00
3aa68451b7 Added Turf JS (haven't used it yet) 2025-02-26 10:59:15 -05:00
08f7f764b2 Started working on district coloring; assign each state a different color (based on language) rather than using 4-color theorem 2025-02-26 06:42:27 -05:00
8b8340fbce Minor update - change stroke color 2025-02-25 23:06:34 -05:00
f5a562725c Added new JSON - without the state boundaries, just districts 2025-02-25 23:06:16 -05:00
1857dd43fc Use the new districts file; display district name instead of state name 2025-02-25 22:28:58 -05:00
765cfe5cc5 Added new geoJSON file with districts (credit to https://github.com/udit-001/india-maps-data) 2025-02-25 22:28:29 -05:00
ff1685bf2c Added more languages 2025-02-25 17:09:05 -05:00
910061fdf9 Added supported languages file 2025-02-25 17:06:50 -05:00
0201b17ae5 Add the state name as an SVG 'text' element, as a sibling to the 'path' 2025-02-25 16:58:30 -05:00
9cb4385a43 Add CSS to display state name on hover 2025-02-25 16:58:08 -05:00
d438a91cdf Fetch SVG size from HTML, instead of re-defining it in JS 2025-02-24 20:55:09 -05:00
ec4f1ddca9 Changed size of SVG 2025-02-24 20:54:57 -05:00
611f10559b Moved JS to separate file 2025-02-24 20:45:06 -05:00
11a287e242 Styling changes; moved JS to separate file 2025-02-24 20:45:00 -05:00
bc3f69bfa3 Added colors to the map (used four-color theorem, but did it manually) 2025-02-24 20:24:32 -05:00
3a104140ab First commit 2025-02-24 17:56:01 -05:00