Permalink
Commits on Oct 2, 2014
  1. Merge pull request #1 from jajadesforets/master

    Compatibility with Google Map Static API V2 and PHP 5.4
    committed Oct 2, 2014
Commits on May 23, 2014
  1. Remove old comment

    jajadesforets committed May 23, 2014
Commits on Jan 24, 2014
  1. Compatibility with Google Map Static API V2 and PHP 5.4

    - Update prefix URL of Google API
    - Update static function declarations
    - Fix errors after call ZoomToFix without markers
    - Update toImgTag function with new parameters:
    + id (string): Add attribut "id" from <img> tag
    + class (string): Add class name from <img> tag
    + addLink (boolean): Add a <a> tag between <img> tag with href from
    google map
    jajadesforets committed Jan 24, 2014
Commits on Jan 30, 2011
  1. Remove old code.

    committed Jan 30, 2011
Commits on Jan 27, 2011
  1. Forgotten commit.

    committed Jan 27, 2011
Commits on Nov 8, 2008
  1. Remove forgotten debug code.

    committed Nov 8, 2008
  2. Automatically shorten lat,lon decimals depending on zoom level.

    First working version. Using array here might not be the most
    elegant choise. This way it stays user configurable.
    committed Nov 8, 2008
Commits on Nov 4, 2008
  1. Update cluster demo texts.

    committed Nov 4, 2008
  2. Add demo for clustering.

    committed Nov 4, 2008
  3. Configurable decimals.

    committed Nov 4, 2008
  4. Remove unneeded parenthesis.

    committed Nov 4, 2008
Commits on Oct 31, 2008
  1. Make $map->zoomToFit() faster.

    Compare to bounds not all markers. Needs only two calls to
    $bounds->containsLocation() instead of call for each marker.
    committed Oct 31, 2008
  2. Update header.

    committed Oct 31, 2008
Commits on Oct 30, 2008
  1. Remove unneeded comment.

    committed Oct 30, 2008
  2. First working marker clusterer.

    You can use clustering by adding a clusterer to map. For example
    
     $clusterer = Google_Maps_Clusterer::create('distance');
     $map->setClusterer($clusterer);
    
    Google_Maps_Clusterer_Distance clusters markers based on ther distance
    from each other. Currently supports only pixel distance. Use 20 pixels
    to prevent markers overlapping each other.
    
    Google_Maps_Clusterer_None is a clusterer which does nothing.
    
    Google_Maps_Math is a mess now but provides Great Circle and Haversine
    distance calculations. These are needed for distance clustering.
    committed Oct 30, 2008
Commits on Oct 28, 2008
Commits on Oct 27, 2008
  1. Add marker cluster.

    committed Oct 27, 2008
Commits on Oct 25, 2008
  1. Quick and dirty KML demo.

    committed Oct 25, 2008
  2. Include only visible markers when constructing Static Maps URL.

    Helps to keep URL's short.
    committed Oct 25, 2008
Commits on Oct 24, 2008
  1. Use constant instead.

    committed Oct 24, 2008
Commits on Oct 22, 2008
  1. Changed API for infowindows.

    Infowindows now contain marker and not vice versa. This might first seem
    counterintuitive but actually is more logical. I have seen lots of other
    code (including Google's) to go this way.
    
    Code is now something like following:
    
    -cut-
    $map = Google_Maps::create('static');
    
    $coord_1  = new Google_Maps_Coordinate('58.378700', '26.731110');
    $marker_1 = new Google_Maps_Marker($coord_1);
    
    $bubble_1 = new Google_Maps_Infowindow('Foo Bar');
    $bubble_1->setMarker($marker_1);
    
    $map->addInfowindow($bubble_1);
    $map->addMarker($marker_1);
    -cut-
    committed Oct 22, 2008
Commits on Oct 21, 2008
Commits on Oct 13, 2008
  1. Markers are now clickable.

    committed Oct 13, 2008
Commits on Oct 12, 2008
  1. Method $map->setCenter() can now take "lat,long" string, Google_Maps_…

    …Point
    
    or Google_Maps_Coordinat as parameter.
    committed Oct 12, 2008
Commits on Oct 10, 2008