Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Adding Algeria Map #23

Merged
merged 6 commits into from
Mar 22, 2016
Merged

Adding Algeria Map #23

merged 6 commits into from
Mar 22, 2016

Conversation

medkhelifi
Copy link

Hi;
I Added Algeria map with its Departments, Thank you to accept this pull request...

mohamedchrif.khelifi@gmail.com added 2 commits March 20, 2016 15:02
@wassimans
Copy link

@medkhelifi Great to hear that, we need it at work :-)

@Indigo744
Copy link
Collaborator

Thanks for the PR! Can you provide a JSFiddle presenting the map? Thanks :)

@medkhelifi
Copy link
Author

Here we go:
https://jsfiddle.net/medkhelifi/df1L2wqL/

@Indigo744
Copy link
Collaborator

Thanks a lot. The quality looks good :)

I have however some questions:

  • What is the projection? Equirectangular? Can you specify it in comment header?
  • From which SVG file did you create this map? Can you attribute the source?
  • You didn't defined any getCoords() function. Can you define one, even if empty (returning directly lon, lat)
  • Why every element name starts with "DZ-" ?

@medkhelifi
Copy link
Author

1- I don't understand this question ??!!!
2- I create my svg file from this website: https://pixelmap.amcharts.com/
3- I defined getCoords(), I will make a push, but I'm not sure if the data are accurate.
4- DZ is the coutry code for Algeria, but I can give the name of departments.

@Indigo744
Copy link
Collaborator

Well, a map projection represents the method of transforming the spherical world into a flat surface (hence, you are projecting the real point to an approximation). See https://en.wikipedia.org/wiki/Map_projection.

In the website AMCharts, you can define the projection in the first box on the left.
It looks like you used the Mercator projection (a classic one). However, this projection uses complex coordination transformation from longitude,latitude to x,y.

Regarding the naming, I think this is OK like this :)

add getCoords() function
@medkhelifi
Copy link
Author

I finished the naming of departments, and added getCoords() function.

Thank you :)

@Indigo744
Copy link
Collaborator

Can you add the source (something along generated from https://pixelmap.amcharts.com) in your comments?

The getCoords function seems to correspond to an Equirectangular projection. Either generate your SVG from this projection, or implements the Mercator projection. You have to be consistent!

@medkhelifi
Copy link
Author

I recreated another Equirectangular projection svg map with the correspondent coordinates.
I also added the svg source file.

@Indigo744
Copy link
Collaborator

Really good!

Now if you can just delete the SVG file, I will merge your PR ;-)

mohamedchrif.khelifi@gmail.com added 2 commits March 22, 2016 10:57
@medkhelifi
Copy link
Author

Done SVG File deleted ...

@neveldo
Copy link
Owner

neveldo commented Mar 22, 2016

Thanks a lot @medkhelifi for this great new map !! @Indigo744 will merge it to the master branch as all seems to be ok now :)

Indigo744 added a commit that referenced this pull request Mar 22, 2016
@Indigo744 Indigo744 merged commit 4414fe9 into neveldo:master Mar 22, 2016
@Indigo744
Copy link
Collaborator

Thanks @medkhelifi for your contribution :)

@medkhelifi
Copy link
Author

pleased to contribute to this api, I find it very useful :)

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

Successfully merging this pull request may close these issues.

4 participants