This project visualizes the recognition of Palestine by different countries over time using a map and a bar chart. It is built using vanilla JavaScript and MapLibre GL JS.
-
Clone the repository:
git clone https://github.com/yourusername/palestinerecognition.git cd palestinerecognition -
Open
index.htmlin your browser to view the visualization.
- Replace the
data/countries.geojsonfile with your own GeoJSON data file. Ensure that your data has the necessary properties (recognition,date,country_code, etc.).
- Modify the
map.on('load', function () { ... })section in your JavaScript file to change the map layers and properties according to your data.
- Update the
createBarChart(data)function to change the appearance and data of the bar chart.
- Modify the
map.on('mousemove', 'countries-layer', function(e) { ... })section to customize the popup content based on your data properties.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Create a new Pull Request.
This project is licensed under the DoNoHarm License. See the LICENSE file for details.