HTML-GoogleMaps

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

1     Jul 3, 2005
	- original version

2     Aug 18, 2005
	By default, the map will now center itself at the center of any markers
	Added support for additional icons
	Took out strange 5.8.6 requirement added by h2xs
	Thanks to Suresh Govindachar for his input

3     Jan 18, 2006
        By default, wrap popup html in a 350px by 250px
        Split up the output of render into three parts to help IE support

4     April 29, 2006
        Switched over to the new v2 map API
        Added v2_zoom method to access the new hi-res zoom levels.  The old
          zoom method is deprecated and will probably be replace by v2_zoom 
          in a future release.

5     June 17, 2006
        Added support for geocoding with Geo::Coder::Google.  Geo::Coder::US 

README  view on Meta::CPAN

        Set the map type. Either map_type or satellite_type.

    $map->add_icon(name => $icon_name, image => $image_url, shadow =>
    $shadow_url, image_size => [ $width, $height ], shadow_size => [ $width,
    $height ]);
        Adds a new icon, which can later be used by add_marker. Optional
        args include icon_anchor and info_window_anchor.

    $map->add_marker(point => $point, html => $info_window_html)
        Add a marker to the map at the given point. If html is specified,
        add a popup info window as well. icon can be used to switch to
        either a user defined icon (via the name) or a standard google
        letter icon (A-J).

    $map->add_polyline(points => [ $point1, $point2 ])
        Add a polyline that connects the list of points. Other options
        include color (any valid HTML color), weight (line width in pixels)
        and opacity (between 0 and 1).

    $map->render
        Renders the map and returns a two element list. The first element

lib/HTML/GoogleMaps.pm  view on Meta::CPAN

Adds a new icon, which can later be used by add_marker.  All args
are required except for info_window_anchor.

=item $map->add_marker(point => $point, html => $info_window_html)

Add a marker to the map at the given point. A point can be a unique
place name, like an address, or a pair of coordinates passed in as
an arrayref: [ longituded, latitude ].

If B<html> is specified,
add a popup info window as well.  B<icon> can be used to switch to
either a user defined icon (via the name) or a standard google letter
icon (A-J).

Any data given for B<html> is placed inside a 350px by 200px div to
make it fit nicely into the Google popup.  To turn this behavior off 
just pass B<noformat> => 1 as well.

=item $map->add_polyline(points => [ $point1, $point2 ])

Add a polyline that connects the list of points.  Other options
include B<color> (any valid HTML color), B<weight> (line width in
pixels) and B<opacity> (between 0 and 1).

=item $map->render



( run in 1.697 second using v1.01-cache-2.11-cpan-364913b4093 )