Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More tolerant parsing of lat/lon #58

Open
nerik opened this issue Jun 6, 2014 · 0 comments
Open

More tolerant parsing of lat/lon #58

nerik opened this issue Jun 6, 2014 · 0 comments

Comments

@nerik
Copy link

nerik commented Jun 6, 2014

Kartograph breaks when entering lat/lon pairs with commas instead of points as decimal separators.

I have a csv file generated by Tableau which have commas in lat/lon pairs, so it maybe something happening quite often.

I'd gladly make a PR but I don't know Coffee :/

Simple fix in js :
function LonLat(lon, lat, alt) {
if (alt == null) {
alt = 0;
}
if (lon.replace !== undefined) lon = lon.replace(',','.');
if (lat.replace !== undefined) lat = lat.replace(',','.');
if (alt.replace !== undefined) alt = alt.replace(',','.');

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

No branches or pull requests

1 participant