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

feat: switch from Mapbox GL JS to MapLibre GL JS (DHIS2-11406) #374

Merged
merged 7 commits into from
Jul 6, 2021

Conversation

turban
Copy link
Collaborator

@turban turban commented Jul 6, 2021

Fixes: https://jira.dhis2.org/browse/DHIS2-11406

As Mapbox GL JS v2 is no longer under a BSD-3-Clause license, this PR is switching to MapLibre GL JS, a community led fork derived from mapbox-gl-js prior to their switch to a non-OSS license: https://github.com/maplibre/maplibre-gl-js

Main changes:

  • Switch from mapbox-gl to maplibre-gl
  • Raname class names from "mapboxgl-" to "maplibregl-"
  • Include mapboxgl-spiderifier code in repo and not as a dependency.

The reason mapboxgl-spiderifier code was included directly in the repo is that the dependency requires mapbox-gl to display markers. The code was adapted to use markers from maplibre-gl instead.

BREAKING CHANGE: It was made a breaking change as the maps-app (and possibly other apps) uses the "mapboxgl-" class names.

After this PR the map controls display as before:

Screenshot 2021-07-06 at 16 03 32

The spiderify of events still works as before:
spiderify

@turban turban merged commit 3cf2081 into master Jul 6, 2021
@turban turban deleted the feat/DHIS2-11406 branch July 6, 2021 18:07
dhis2-bot added a commit that referenced this pull request Jul 6, 2021
# [2.0.0](v1.8.7...v2.0.0) (2021-07-06)

### Features

* switch from Mapbox GL JS to MapLibre GL JS (DHIS2-11406) ([#374](#374)) ([3cf2081](3cf2081))

### BREAKING CHANGES

* New "maplibregl-" class names.
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants