Skip to content

Commit

Permalink
Fix missing communities on the map in user groups page
Browse files Browse the repository at this point in the history
  • Loading branch information
adamscott committed Jan 18, 2024
1 parent 83e74cb commit fb85c57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion _data/communities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ Iraq:
url: https://www.instagram.com/bgl.iq/
- title: Linkedin
url: https://www.linkedin.com/company/bgh-iq

Israel:
- name: Godot Israel
links:
Expand Down
6 changes: 6 additions & 0 deletions pages/community/user-groups.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ <h1 class="intro-title">User Groups</h1>
'Indonesia': [-2.548926, 118.0148634],
'Italy': [42.504154, 12.646361],
'Iran': [32.4207423, 53.6830157],
'Iraq': [33.223191, 43.679291],
'Israel': [31.53131, 34.86677],
'Japan': [36.57484, 139.23942],
'Latvia': [56.959065, 24.862593],
Expand Down Expand Up @@ -139,6 +140,11 @@ <h1 class="intro-title">User Groups</h1>

// Add markers for online communities with merged tooltips.
Object.keys(onlinePoints).forEach((country, index) => {
if (countryCoordinates[country] == null) {
console.warn(`Coordinates of "${country}" are missing, skipping.`);
return;
}

let markerPopup = '';
onlinePoints[country].forEach((point, index2) => {
// Add a line separation between online communities.
Expand Down

0 comments on commit fb85c57

Please sign in to comment.