Skip to content

ScaleControl uses inconsistent earth radius #8777

Description

@exedealer

mapbox-gl-js version: 1.3.1

browser: *

Why scale control uses different earth radius than mercator projection code? Is this ok?

const R = 6371000;

const circumferenceAtEquator = 2 * Math.PI * 6378137;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions