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

world map with mercator projection #37

Closed
yingban opened this issue Mar 31, 2014 · 9 comments
Closed

world map with mercator projection #37

yingban opened this issue Mar 31, 2014 · 9 comments

Comments

@yingban
Copy link

yingban commented Mar 31, 2014

Hi neveldo,

great work !
Is there any parameter to change the projection style ? or should i create my own map ?

Thanks

@neveldo
Copy link
Owner

neveldo commented Apr 8, 2014

Hello yingban,

You have to create your own map based on the SVG file of the world map. You can find here some world maps with other projections : http://commons.wikimedia.org/wiki/Category:Blank_SVG_maps_of_the_world .

Be carefull, the algorithm to convert latitude,longitude into x,y (in the getCoords() method) will be more tricky than with the equi-rectangular projection which is the simplest one.

@yingban
Copy link
Author

yingban commented Apr 14, 2014

Thank you !

@cgordenne
Copy link

Hello,

I'm using a mercator projection map too. I have only one problem, the getCoords() method.
Do you have an example for this type of projection ?

@neveldo
Copy link
Owner

neveldo commented May 12, 2015

Hello,

Unfortunately, for now, there is no example of maps for mapael with a mercator projection.

Maybe you could find useful information in this thread from stackoverflow : http://stackoverflow.com/questions/14329691/covert-latitude-longitude-point-to-a-pixels-x-y-on-mercator-projection .

Feel free to share your feedback about mercator projection here !

@scooterlord
Copy link

Hello, it was not until today that I realized I needed a mercator projection too. Are there any plans for implementing this on mapael?

@neveldo
Copy link
Owner

neveldo commented May 19, 2015

Hello,

As the getCoords() function just takes as parameters a couple of latitude,longitude and returns a couple of x,y coordinates, there is no need of implementing a specific projection in mapael. The algorithm that allows to convert a (latitude,longitude) into a (x,y) should fit within this function.

I think the tutorial for creating new maps (http://www.vincentbroute.fr/mapael/create-map.php#getcoords) should be completed in order to show how to handle maps with mercator projection. I will add it to my todos, but feel free to contribute if you have any time !

@scooterlord
Copy link

Thanks for your pointers. I wish I was fluent enough with js that I could help out :/

@Indigo744
Copy link
Collaborator

Dear all,
We are working on an example for Mercator projections.
Could you provide us your Mercator map? I have trouble finding a good one... :-/
Thanks a lot.

@Indigo744
Copy link
Collaborator

As the Mercator projection is now fully implemented, we will close this issue.

Feel free to open a new thread if you have any questions.

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

No branches or pull requests

5 participants