Welcome to ftp.nluug.nl Current directory: /ftp/pub/languages/perl/CPAN/authors/id/H/HO/HOFSTETTM/ |
|
Contents of README:NAME: Geo::Heatmap overlay a density map (aka heatmap) over googlemaps see example here http://www.trust-box.at//dev/gm/GoogleMapsHeatmap/www/GoogleMapsHeatmap.html GET CODE https://github.com/MarkHofstetter/GoogleMapsHeatmap SYNOPSIS Create a Heatmap layer for GoogleMaps my $ghm = Geo::Heatmap->new(); $ghm->palette('palette.store'); $ghm->zoom_scale( { 1 => 298983, 2 => 177127, 3 => 104949, 4 => 90185, 5 => 70338, 6 => 37742, 7 => 28157, 8 => 12541, 9 => 3662, 10 => 1275, 11 => 417, 12 => 130, 13 => 41, 14 => 18, 15 => 10, 16 => 6, 17 => 2, 18 => 0, } ); $ghm->cache($cache); $ghm->return_points( \&get_points ); my $image = $ghm->tile($tile); You need a color palette (one is included) to encode values to colors, in Storable Format as an arrayref of arrayrefs eg [50] = [34, 45, 56] which means that a normalized value of 50 would lead to an RGB color of 34% red , 45% blue, 56% green zoom_scale the maximum number of points for a given google zoom scale, you would be able to extract to values from the denisity log or derive them from your data in some cunning way cache you need some caching for the tiles otherwise the map would be quite slow. Use a CHI object with the cache you like return_points is a function reference which expects a single hashref as a parameter which defines two LAT/LONG points to get all data points within this box $r->{LATN}, $r->{LNGW}), $r->{LATS}, $r->{LNGE} the function has to return an arrayref of arrayrefs of the points within the box tile returns the rendered image |
Name Last modified Size
Parent Directory - Business-AT-SSN-0.9.meta 21-Nov-2014 19:11 1.6K Business-AT-SSN-0.9.readme 21-Nov-2014 19:11 1.1K Business-AT-SSN-0.9.tar.gz 21-Nov-2014 19:13 10K Business-AT-SSN-0.91.meta 23-Nov-2014 20:33 1.6K Business-AT-SSN-0.91.readme 23-Nov-2014 20:33 1.2K Business-AT-SSN-0.91.tar.gz 23-Nov-2014 20:34 10K Business-AT-SSN-0.92.meta 24-Nov-2014 09:30 1.7K Business-AT-SSN-0.92.readme 24-Nov-2014 09:30 1.2K Business-AT-SSN-0.92.tar.gz 24-Nov-2014 09:31 10K CHECKSUMS 21-Nov-2021 22:35 8.9K Geo-Heatmap-0.05.readme 16-Jan-2013 16:14 1.7K Geo-Heatmap-0.05.tar.gz 17-Jan-2013 12:40 2.5M Geo-Heatmap-0.06.meta 18-Jan-2013 13:48 634 Geo-Heatmap-0.06.readme 18-Jan-2013 13:48 1.7K Geo-Heatmap-0.06.tar.gz 18-Jan-2013 13:55 1.2M Geo-Heatmap-0.07.meta 25-Jan-2013 18:29 634 Geo-Heatmap-0.07.readme 25-Jan-2013 18:29 1.7K Geo-Heatmap-0.07.tar.gz 25-Jan-2013 21:52 1.2M Geo-Heatmap-0.16.1.meta 05-Dec-2013 15:52 627 Geo-Heatmap-0.16.1.readme 05-Dec-2013 15:52 1.7K Geo-Heatmap-0.16.1.tar.gz 05-Dec-2013 16:03 1.9M Geo-Heatmap-0.17.meta 07-Dec-2013 06:05 1.9K Geo-Heatmap-0.17.readme 07-Dec-2013 06:05 1.5K Geo-Heatmap-0.17.tar.gz 08-Dec-2013 21:19 1.1M Geo-Heatmap-0.18.meta 09-Dec-2013 10:01 1.9K Geo-Heatmap-0.18.readme 09-Dec-2013 10:01 2.1K Geo-Heatmap-0.18.tar.gz 09-Dec-2013 10:03 1.1M GoogleMapsHeatmap-0.08.meta 25-Feb-2013 19:41 634 GoogleMapsHeatmap-0.08.readme 25-Feb-2013 19:41 1.7K GoogleMapsHeatmap-0.08.tar.gz 25-Feb-2013 19:46 1.2M README 17-Jan-2013 12:33 1.7K RT-Extension-BounceEmail-0.02.meta 10-Nov-2015 15:41 1.5K RT-Extension-BounceEmail-0.02.readme 10-Nov-2015 15:41 1.1K RT-Extension-BounceEmail-0.02.tar.gz 10-Nov-2015 15:42 44K RT-Extension-BounceEmail-0.03.meta 13-Nov-2015 12:47 1.6K RT-Extension-BounceEmail-0.03.readme 13-Nov-2015 12:47 1.2K RT-Extension-BounceEmail-0.03.tar.gz 13-Nov-2015 12:48 45K RT-Extension-OneClickClose-0.02.meta 17-Nov-2015 10:26 1.5K RT-Extension-OneClickClose-0.02.readme 17-Nov-2015 10:26 1.5K RT-Extension-OneClickClose-0.02.tar.gz 17-Nov-2015 10:27 41K
NLUUG - Open Systems. Open Standards
Become a member
and get discounts on conferences and more, see the NLUUG website!