Skip to content

MahmoudAdly/palmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PalMap

A javascript library to get Palestine back on Google Maps. Licensed under Creative Commons Attribution-ShareAlike 4.0 (license details).

[PalMap Example]

Installation

1- Make sure you get these files and add them in similar directories.

  • js/palmap.js
  • img/palmap/

2- Include palmap.js in your html file.

<script src="js/palmap.js"></script>

3- After your Google Maps initialization code, call PalMap library with the map object.

PalMap.getPalestine(map);

4- Congratulations! Palestine is back on your Google Map.

Example

<script>
  // your normal Google Maps code
  function initialize() {
    var mapOptions = {
      zoom: 7,
      center: new google.maps.LatLng(30.9001985,34.8437028)
    };
    var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);

    // get palestine labels back to google map
    PalMap.getPalestine(map);
  }
  google.maps.event.addDomListener(window, 'load', initialize);
</script>

About

A javascript library to get Palestine back on Google Maps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published