-
Notifications
You must be signed in to change notification settings - Fork 195
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
Comments
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. |
Thank you ! |
Hello, I'm using a mercator projection map too. I have only one problem, the getCoords() method. |
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 ! |
Hello, it was not until today that I realized I needed a mercator projection too. Are there any plans for implementing this on mapael? |
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 ! |
Thanks for your pointers. I wish I was fluent enough with js that I could help out :/ |
Dear all, |
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. |
Hi neveldo,
great work !
Is there any parameter to change the projection style ? or should i create my own map ?
Thanks
The text was updated successfully, but these errors were encountered: