Giter Club home page Giter Club logo

Comments (9)

neveldo avatar neveldo commented on May 18, 2024

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.

from jquery-mapael.

yingban avatar yingban commented on May 18, 2024

Thank you !

from jquery-mapael.

cgordenne avatar cgordenne commented on May 18, 2024

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 ?

from jquery-mapael.

neveldo avatar neveldo commented on May 18, 2024

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 !

from jquery-mapael.

scooterlord avatar scooterlord commented on May 18, 2024

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

from jquery-mapael.

neveldo avatar neveldo commented on May 18, 2024

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 !

from jquery-mapael.

scooterlord avatar scooterlord commented on May 18, 2024

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

from jquery-mapael.

Indigo744 avatar Indigo744 commented on May 18, 2024

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.

from jquery-mapael.

Indigo744 avatar Indigo744 commented on May 18, 2024

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.

from jquery-mapael.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.