Skip to content

DevCBeirut/Lebanon-Districts-D3-Map

 
 

Repository files navigation

D3.js Map: Lebanon

How it was done

This Repository is a very slightly modified verion of Gary Pang's repository.

This will hopefully allow other developer to show their data on a Lebanese map and make it easier for data visualization.

The Map is based on 3 ShapeFile files downloaded from this website

The Json is a TOPOJSON file which takes less space then your your typical geojson file.

In order to convert the ShapeFile to a topo Json I used the following site.

The Actual Site

You can check the interactive D3 map on the link below

https://ebrahimkaram.github.io/Lebanon-Districts-D3-Map/

It's divided into 3 sections.

Mohafaza / Governorates

muhafazah (محافظة) You can use your mouse to hover over the different areas and check their name.

Now developers can add data for each region that would show on the tooltip.

Qada2 / Districts

kaza (قضاء) As you hover your mouse on the region. The tooltip shows the name of the Qada2 and the region that is in.

Diya3 / Villages

The tooltip would show the name of the Village, the name of the district it is apart of, and the Mohafaza it is apart of.

Acknowledgments

I would like to give credit CodeWritingCow for making his D3.js map of Syria repository public making the development of this repository much easier.

Further Info

Please feel free to submit any issues, star the repository, and fork it for your personal projects. I'm putting this project under an MIT open License to encourage as many projects as possible for whatever purpose they serve. I'm also available on twitter at @BahoKaram

http://www.localiban.org/ https://www.libandata.org/en/ https://www.libandata.org/en/article/administrative-divisions-lebanon-2016-muhafazah-s-and-kaza-s

First level : Eight muhafazah-s. Second level : Twenty-five kaza-s. Third level : 1 029 municipalities (baladia, may 2016). Two or more municipalities could form a federation of municipalities.

About

A D3 Map of all the districts Lebanon and in which Governorate they are in

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.5%
  • HTML 30.6%
  • Python 12.8%
  • CSS 6.1%