[-] hex_atlas@hexbear.net 57 points 2 months ago* (last edited 2 months ago)

I made some updates to the HexAtlas since I last posted:

  • Search: Nominatim Integration allows to search any place
  • Mobile UX: It's should be now easier to navigate on mobile
  • Mastodon: See posts (WIP)
  • Sessionstorage: Settings/Selections are now saved even when you refresh the browser window (until you close the tab)
  • Had to remove leftypedia.. I couldn't figure out why it was only working locally..

https://hex-atlas.netlify.app CW: Spoilertags are still not functioning

[-] hex_atlas@hexbear.net 17 points 3 months ago

Hmm.. I'm mostly familiar with front-end and for most of the integrations, I've been able to leverage various APIs, where a lot of that backend-stuff is solved already (i.e. asking the server to get X Data and getting X back; like the IMF Data Tab). Downloading the spreadsheet and doing this myself, I'd have to get familiar with writing that type of code and the math first and it would take me a long time to implement. If someone would like to help doing the back-end it would be cool (please reach out). For now I feel like I still have so much left to do on the front-end of things. I'm also thinking about reaching out to the listed researchers at the bottom, once I'm ready to tackle it

[-] hex_atlas@hexbear.net 19 points 3 months ago

Cool! Unfortunately I found no way of directly linking to the country. (I also checked the network in devtools, but nothing I'm familiar with or could use) It'll have to be a generic link for now

[-] hex_atlas@hexbear.net 47 points 3 months ago* (last edited 3 months ago)

Thank you for making a pinned post, I'll use the opportunity to make two calls:

(The other thread was at the end of it's lifecycle already)

  1. Under the Nexus > Misc tab you will find a basic integrations of:
  • World Inequality Database
  • UN Comtrade
  • International Labour Organization
  • International Energy Agency
  • World Bank
  • OECD

If there's (economic) data you'd like to see feel free to reach out. I at the very least will add linking, but will also make an effort for deeper integration at some point.

  1. In order to increase usability of the atlas please add the location to the comment body. Also please consider following: Since there's a province/territory scope, and a lot of these are empty atm you can post local news from your area also. It would be cool for comrades that would like to now what's going on locally in different parts of the world. If doxxing is a concern: create a new account.

Example:

  • You read interesting news about a certain location
  • Post the news in the format you're used to, but
  • If you use the exact wording how you find it in the atlas to "tag" (see what I mean below), you will make sure it pops up in that scope

e.g. Xinjiang, China , Eastern Asia , Asia, CN, CHN (in that exact wording; the Atlas works by using the lemmy search function to find these strings, by having it in the comment body you make them findable)

We as a community could for example also decide to use the ISO3166-alpha 3 for one type of news/post and the full nomeclature of the country/region for another type (not sure if need actually, it's just a thought/suggestion, but maybe someone has a cool/good suggestion)

Thank you :)

[-] hex_atlas@hexbear.net 33 points 3 months ago

PSA: If you want to make the Atlas even more useful, make sure to add the name of the country, province, continent, etc. into the comment body when sharing news. This way the comment shows up on it

[-] hex_atlas@hexbear.net 15 points 3 months ago* (last edited 3 months ago)

After some consideration I decided to make the code public under the GNU AFFERO GENERAL PUBLIC LICENSE ( AGPL-3.0 license )

https://github.com/hexatlas/lemmy-atlas/

https://git.altesq.net/hex_atlas/lemmy-atlas/

Thank you for your input:

@hello_hello@hexbear.net

@kota@hexbear.net

@iByteABit@hexbear.net

[-] hex_atlas@hexbear.net 17 points 3 months ago

How does a post/comment get associated with a region? Is it a text based analysis of the post that picks out keywords?

When you click on a region, and depending on the regionscope (country, province, contintent, etc.) the string is passed to the lemmy-client-js search function (e.g. west asia, egypt, california). The posts/comments that pop up are just the search results on the string. At the very bottom of the lemmy integration you find the link to the search page and how the query works. I'm afraid it's just a fancy search page that is leveraging all fields you see here https://hexbear.net/search :)

Another thought, would it be feasible to show a timeline view to show which regions are "hot" at the moment and over time? I imagine in 2022 that Ukraine would light up (no pun intended), and in 2024 so would Gaza. That would be kind of cool to see.

That's a great Idea! Not sure how to be able to implement it. Lemmy-client-js would probably need to be able to take fromDate and toDate as a parameter on the search function if I understand your idea correctly.

[-] hex_atlas@hexbear.net 21 points 3 months ago* (last edited 3 months ago)

I am a huge fan of your bulletins! If you're interested we can make them even integrate even better (e.g. the reading list, or if some countries are not showing).

Thank you for doing the bulletin posts! rat-salute

[-] hex_atlas@hexbear.net 15 points 3 months ago

Yes! Netlify was just something I used to get it quickly on the web. I believe @TheCaconym@hexbear.net is checking the external modules and would add it to atlas.hexbear.net (not sure if they meant to host it as well or just add it to the domain). I'll give you access to the github repo. Will thenetlify serverless functions have to be rewritten?

[-] hex_atlas@hexbear.net 16 points 3 months ago

I didn't know GIS development is a thing and I will have to look a lot more into it. Looks like I've been reinventing the wheel. It's the first time I worked with maps and was just screwing around 😅

I personally dont like the overview map, i dont think thats really needed and if, than maybe smaller and without any labels

Do you mean the minimap in the corner or the entire map?

positron from CartoDB

I gave it a quick look and I probably should've used this from the get go. I will see how I can use this in this project (It's written in react-ts)

Zoom level about 7-1, maybe just make them clickable but invisible at this zoom

Thank you I will try to solve this!

Would use Esri standard or openstreetmaps or Positron with labels, it is less overwhelming.

It was a purely aestehtic choice (like that cloud layer that disappears when you zoom in) lol I updated the default to be OpenStreetMap

And a Idea that I think is really cool would be a point layer with pins of places that someone recently wrote something about on hexbear or lemygrad, maybe the last 24h. That way we would see at the first sight where is something big going on.

I have an Issue open for "Active Regions". I actually want the map to also auto focus on there and to be able to see a weighting of the entire map based on the amount of comments/posts. I'm not sure on how to achieve this, but could be if I receive amount of search results back from the lemmy-client-js api. e.g. Gaza Strip - x amount of comments and compare it with other regions

Hope that what I wrote was helpful. Thank u for ur great work.

Thank you it is! :)

[-] hex_atlas@hexbear.net 13 points 3 months ago

Thank you @oscardejarjayes@hexbear.net!

To elaborate some more: You can either search for a place or click on it. You'll see various scopes: provinces/territories, countries, intermediate regions, sub regions, continent. You can click also on these to change the scope. What it actually does is send it as a search query into lemmy and you see the search results to it (I built a fancy search page). IN the Fediverse Tab you can select the instances, sort types, and other settings from lemmy. On the Nexus Tab you have a similar behaviour, just for the various modules. You'll see the wiki of whatevery is selected on the map :)

tldr: Attention [Pink]: Select an option [Purple] to reveal selected information [Yellow].

[-] hex_atlas@hexbear.net 20 points 3 months ago

Thank you for bringing this to my attention. It won't be implemented.

180
Introducing: HexAtlas (hex-atlas.netlify.app)
submitted 3 months ago* (last edited 3 months ago) by hex_atlas@hexbear.net to c/news@hexbear.net

Hello and warm greetings to my fellow news mega enjoyers and to the wider hexbear, lemmygrad and lemmy.ml community,

I've been finding myself browsing the newsmega often and was often thinking of a way that would help me contextualize the discussions and news that I'm reading. I remembered an atlas I had in school that would show the location of industries and natural ressources (and more) and decided try to recreate a digital version similar to https://atlas.cid.harvard.edu/. When I stumbled upon lemmy-js-client I found a fun way to display lemmy comments geographically, which I would like to share with you:

https://hex-atlas.netlify.app/

⚠️ Spoiler Tags are not implemented thus CWs are not hidden

Nexus Features:

I'm open for suggestions, but would like to continuously add new features:

  • Mastodon.social (well documented)
  • Marxists.org (will be difficult)
  • ~~Moon of Alabama (looks easy)~~ (Thank you @someone@hexbear.net for pointing out the transphobia)
  • Usability and performance improvements
  • and maybe more cool features where the guiding ideas are: "IRL Victoria 3 UI" and a "cockpit for newsmega-enjoyers" (e.g. comparing regions and seeing commodity/capital flows, real-time 1% flight data, vessel data - to enjoy the ansar allah blockade, virgin chad ranking, etc.)

Basic usage:

  • You can either search for a place or click on it. You'll see various scopes: provinces/territories, countries, intermediate regions, sub regions, continent. You can click also on these to change the scope. What it actually does is send it as a search query into lemmy and you see the search results to it (I built a fancy search page). IN the Fediverse Tab you can select the instances, sort types, and other settings from lemmy. On the Nexus Tab you have a similar behaviour, just for the various modules. You'll see the wiki of whatever is selected on the map :

  • use query to search location by query e. g. brics and find discussions pertaining to the selected location.

  • the query field can also be used to find and filter content by communities that are not listed

  • on Mobile long press pictures to unblur it (not fully tested) on desktop hover with mouse

tldr: Attention [Pink]: Select an option [Purple] to reveal selected information [Yellow].

It's in a prototype stage so please keep in mind:

  • ⚠️ Spoiler Tags are not implemented thus CWs are not hidden ⚠️

  • It's mostly optimized for desktops. Sry comrades with old hardware - no optimization, yet :( @kota@hexbear.net post inspired me to look into this tho.

  • Provinces/Territories: While I was doing manual edits to some regions I realized I'm doing something very political (duh). Following this, I'm looking for solutions to implement user defined regions (if there's interest from you) e.g. #fromTheRiverToTheSea #brics #udssr #whatever Comrade @SleeplessOne1917@lemmy.ml offered help, but I have only experience with front-end and am not sure how and what to propose. All my ideas are leveraging the current state of development and might be annoying to you. If you have experience, suggestions, etc. on how to make this work, feel free to start a discussion, reach out, etc.

  • Provinces/Territories: If you want something particularly aggravating changed asap, feel free to start a discussion and vOtE! I'll update manually.

  • Countries that span two continents are only displayed as belonging to one e.g. Russia - Europe (Dataset used: https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes)

  • Right now this project is exclusive to hexbear, lemmygrad, lemmy.ml and their federated instances. I have an inner conflict: Generally, fuck intellectual property and I would like to make it foss, but this would make it available for lib/chud content as well. Should I? Help me resolve this.

  • No login implemented

Please consider this a tribute to this community, which I've been lurking and a member since the r/CTH days (nevar forget). I started web development not too long ago and am deeply inspired by dev titans among others:

@nutomic@lemmy.ml

@dessalines@lemmy.ml

@SleeplessOne1917@lemmy.ml

Thank you and the mods and admins for making hexbear/lemmy what it is today.

rat-salute

Enjoy your weekend :)

(After I post this I will leave the computer for a while and wont be able to really check and respond for a few hours)

Death to fascism

Death to capitalism

Death to imperialism

Trans rights are human rights

EDIT: After some consideration I decided to make the code public under the GNU AFFERO GENERAL PUBLIC LICENSE ( AGPL-3.0 license )

https://github.com/hexatlas/lemmy-atlas/

https://git.altesq.net/hex_atlas/lemmy-atlas/

view more: next ›

hex_atlas

joined 5 months ago