Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add a community map on the User groups page #201
Conversation
The map is powered by Leaflet.js and Mapbox's tiles API.
The map is powered by Leaflet.js and Mapbox's tiles API. Mapbox's free tier is limited to 50,000 page loads per month, which should be fine given the community map is placed on a 3rd-level page (Home > Community > User Groups).
User groups are now stored in a PHP array located in the front matter. This makes the godotengine/community-map repository obsolete. While not as ubiquitous as JSON, the PHP array format is more commonly known compared to the custom format we were using before. (We could still move the list of communities to a JSON file if needed.)
When adding a new country, make sure to add its GPS coordinates to the
countryCoordinatesJavaScript object inuser-groups.htm. This is required to place the online community marker correctly.TODO
Preview