TAOTI's base mapbox implementation. In most cases, you will need to modify code to achieve your desired results.
- Drupal 9.0+
- drupal/entity_reference_revisions: ~1.3
- drupal/token ^1.13
- drupal/viewsreference ^2.0@beta
- drupal/paragraphs ^1.16
- Views GeoJSON is used by the default implementation to provide points on the map.
- Install the module as normal, see also core docs
- Set configuration options at
/admin/config/services/mapbox
.
- Add the
Mapbox Map
paragraph anywhere you want a map to appear - Adjust the views/javascript as necessary to achieve your goals. Like in art, this is how you get from a couple of circles to a beautiful owl and also similar to drawing tutorials, is left as an exercise for the reader - future documentation will hopefully expand this.
Provides a Taxonomy vocabulary and terms for each country with fields for:
- mapbox ID
- ISO 3166 Alpha-2 country code
- marker position.
On install creates terms for countries in mapbox boundaries API level 0 as of 2022, marker position is set to pretty much centre of each country.
Additionally, provides a light grey highlight on hover effect for countries and serves as an example module for componentized JS.
Removes created taxonomy terms and configurations.