Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a community map on the User groups page #201

Draft
wants to merge 1 commit into
base: master
from

Conversation

@Calinou
Copy link
Member

@Calinou Calinou commented Nov 9, 2020

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 countryCoordinates JavaScript object in user-groups.htm. This is required to place the online community marker correctly.

TODO

  • Set up a Mapbox account shared among core Godot developers and replace the personal API key. Make sure to restrict the URL to allow only godotengine.org URLs.

Preview

Screenshot_2020-11-09 User Groups

The map is powered by Leaflet.js and Mapbox's tiles API.
@Calinou Calinou force-pushed the Calinou:add-community-map branch from dec9927 to 1ccf003 Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.