Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@akashmahale
Copy link

image

@huntfx
Copy link

huntfx commented Mar 16, 2023

This solves the bug but introduces another one. It's cutting off every point below 0 latitude.

image

Seems to work with !isNaN(latitude) && !isNaN(longitude) instead.

@polarfoxDev polarfoxDev mentioned this pull request Jul 16, 2023
if ( latitude > 180 ) latitude = latitude - (2 ** 32) * SCALAR_E7;
if ( longitude > 180 ) longitude = longitude - (2 ** 32) * SCALAR_E7;

if ( type === 'json' ) latlngs.push( [ latitude, longitude ] );

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#34 really fixes it

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants