Inquiry About Hemisphere Scaling in Leaflet Module for Drupal 10

Created on 9 April 2025, about 2 months ago

Hello,

We are currently using the Leaflet module in a Drupal 10 project to provide interactive mapping functionality. As part of our project requirements, we are exploring the possibility of customizing the map projection or scaling to emphasize the Southern Hemisphere—essentially making it appear larger, while proportionally minimizing the Northern Hemisphere.

We’re wondering if Leaflet (as integrated in Drupal) offers any way to dynamically achieve this type of hemisphere scaling or distortion—either through built-in features, projection settings, or any supported plugins.

If such a feature is not available out of the box, we’d greatly appreciate any guidance or recommendations on how this could be approached through customizations or integrations with other JS libraries (e.g., using Proj4Leaflet).

Thanks in advance for your time and support!

Attaching image :

💬 Support request
Status

Needs work

Version

10.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Hello,

    We are using the Leaflet module in Drupal 10 to render interactive maps. As part of our project requirements, we need to modify the map projection so that:

    The Southern Hemisphere appears proportionally larger, and the Northern Hemisphere is less emphasized.

    The map should not use the standard Mercator projection, as it distorts the view and makes the Northern Hemisphere look too large.

    The equator should ideally be centered, aligning with standards suggested in the UN Geospatial Hub.

    We have a reference map (shared in the attached image) that better reflects our desired output, where:

    The focus is on Southern Hemisphere countries.

    Small island nations are also better represented without being overly distorted.

    Our questions:

    Is it possible to customize or override the default Leaflet projection (used in the Drupal integration)?

    If not natively supported by the Drupal Leaflet module, can you guide us on how to implement such a projection using external Leaflet plugins like Proj4Leaflet?

    Are there any known limitations or examples within the Drupal Leaflet ecosystem for such use cases?

Production build 0.71.5 2024