On this page

    How to switch map projection programmatically

    This example shows how to switch between “mercator” and “globe” map projection programmatically.

    The choice between Mercator and Globe can be done at different levels and moments in the lifecycle of the map, yet, unless stated otherwise, Mercator remains the default.

    
    
    An extension of MapLibre GL JS

    Was this helpful?

    SDK JS
    Examples
    How to switch map projection programmatically
    Switch between “mercator” and “globe”