Skip to content
New issue

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

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

Already on GitHub? # to your account

New projections worldmap: Mercator and Miller #169

Merged
merged 2 commits into from
Dec 16, 2015

Conversation

Indigo744
Copy link
Collaborator

Implements #37 as requested. Add also a Miller projection :)

@neveldo
Copy link
Owner

neveldo commented Dec 16, 2015

Great work, well done !!

Was it not too hard to find resources for dealing with these projections ?

Maybe later we could provide a tutorial to create maps with miller or mecator projections, but your examples is already clear enough for understanding.

FYI, I'm currently working a map more accurate world map with equirectangular projection.

neveldo added a commit that referenced this pull request Dec 16, 2015
New projections worldmap: Mercator and Miller
@neveldo neveldo merged commit f93a1c0 into neveldo:master Dec 16, 2015
@Indigo744 Indigo744 deleted the new-projection branch December 16, 2015 12:04
@Indigo744
Copy link
Collaborator Author

It was quite difficult, yes. For instance, there are a lot of resource for Mercator projection, but using different algorithm and leading to different results, without any explanation from their authors...

I was glad to find finally a good resource that explains how to convert coordinate, and project into the map.

Also, I wanted to add initially the Robinson projection, but after too much failed attempt I decided to gave up :-/ maybe I will retry later.

The nice thing here is that the getCoords() function is common to all map. Only the projectLatitude and projectLongitude algorithm are needed.

Hence, we could use an existing library like proj4js to convert between coordinate system.

@neveldo
Copy link
Owner

neveldo commented Dec 21, 2015

Thank you for the explanation, the Robinson projection seems to be more complexe indeed. I agree with you regarding proj4js,maybe it could be a good idea to make some of the JS maps based on proj4js algorithms.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants