Comments (9)
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.
Thank you !
from jquery-mapael.
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.
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.
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.
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.
Thanks for your pointers. I wish I was fluent enough with js that I could help out :/
from jquery-mapael.
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.
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)
- How to get zoom level when you click zoom buttons or mousewheel
- GetCoords function not working properly, what I'm doing wrong?
- How does Event afterZoom works?
- multiple_legends_plotted_cities.html with just one state (Maine)
- Map of a Mexico state divided in munipies
- change the map into dotted map.
- Resize the Map by Inkscape
- How to change color of all areas in a row in jquery HOT 1
- getCoord HOT 2
- attrs text-anchor HOT 2
- Allow click in tooltip content HOT 3
- GetCoords and Mercator Projection ? HOT 2
- dynamic value for areas
- Mouseover issues
- Overflow in horizontal legends
- zoom in mousewheele
- mobile hover problem
- Hongkong and Singapore is not shown in world map.
- French Guiana !== France
- My Map is Coming upside down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-mapael.