Index of /php/mmPDF

      Name                    Last modified       Size  Description

[DIR] Parent Directory 15-Aug-2007 11:23 - [TXT] Changes 29-Sep-2007 11:25 5k [   ] mmPDF-0.1.tar.gz 29-May-2007 10:48 3k [   ] mmPDF-0.2.tar.gz 05-Jun-2007 10:54 3k [   ] mmPDF-0.3.tar.gz 13-Aug-2007 22:18 947k [   ] mmPDF-0.31.tar.gz 15-Aug-2007 10:45 949k [   ] mmPDF-0.32.tar.gz 29-Sep-2007 11:26 952k

NAME
    mmPDF - Simple PHP class to create 'Pocketmod' style booklets from
    map/geotagged data sources, including KML files and del.icio.us

SYNOPSIS
            require("mmPDF.php");

            $modestmaps = array('server' => 'http://127.0.0.1:9999/',
                                'provider' => 'GOOGLE_ROAD',
                                'marker' => 'YAHOO_AERIAL');

            $qr = array('data' => './qr_data',
                        'images' => './qr_images');

            $args = array('folds' => 0,
                          'source' => 'modestmaps',
                          'modestmaps' => $modestmaps,
                          'qr' => $qr);

            $pdf = new mmPDF($args);
            $pdf->SetFont('Helvetica');
            $pdf->SetFontSize(10);

            $pdf->add_map("http://maps.google.com/maps/ms?ie=UTF8&hl=en&om=1&msa=0&msid=100299907049452789878.000001128c15a3e9d7622&output=kml", 5);
            $pdf->add_map("http://del.icio.us/feeds/json/straup/del:bookmark=geo+coffee");  
            $pdf->Output();

DESCRIPTION
    Simple PHP class to create 'Pocketmod' style booklets from map/geotagged
    data sources, including KML files and del.icio.us

WHAT IS "mm" ?
    "mm used to stand for MyMaps. Eventually there was an option to generate
    map images using ModestMaps; this is done using a bare-bones HTTP
    interface around the compose.py script and was checked in as Revision
    339 to /trunk/py. Since then, I've also added support to suck places out
    of Platial and del.icio.us. So, I guess mm just stands for mm, now."

    http://www.aaronland.info/weblog/2007/07/28/trees/#delmaps_pm

PACKAGE METHODS
  new mmPDF($args=array())
    mmPDF subclasses pmPDF so it expects the same arguments to be passed to
    the object constructor. In addition it allows for the following
    arguments :

    * source
        String. *Required*

        Valid options are :

        * yahoo
            Use the Yahoo! Maps Images API to generate, well, map images. If
            defined, the following options must also be present :

            * appid
                A Yahoo! API developer key.

        * modestmaps
            Use the ModestMaps ws-compose web service to generate map
            images. If defined, the following options must also be present :

            * modestmaps
                A hash containing the following properties :

                * server
                    String .*Required*

                    The URL of a server running the ws-compose.py service.

                * provider
                    String. *Required*

                    A valid ModestMaps map tile provider to query for map
                    images.

                * marker
                    String.

                    A valid ModestMaps map tile provider to query for marker
                    images.

    * qr
        A hash pointing to the data and image files required by the QR.php
        library. Valid arguments are :

        * data
            String. *Required*

            The path to the directory of the image files used by the qr.php
            library. These files are part of the the mmPDF.php distribution
            as of versions 0.3 and higher. They are stored in the *qr_data*
            directory.

        * images
            String. *Required*

            The path to the directory of the image files used by the qr.php
            library. These files are part of the the mmPDF.php distribution
            as of versions 0.3 and higher. They are stored in the
            *qr_images* directory.

    * simple
        Boolean.

        Do not bother with multiple maps, or QR codes for a place. Simply
        add a single zoomed in to street level.

        Default is false.

    Returns a *mmPDF* object.

OBJECT METHODS YOU SHOULD CARE ABOUT
    mmPDF subclasses pmPDF so it inherits all its method. In addition it
    exposes the following public object methods :

  $obj->add_map($path_or_url, $max=0)
    A path or URL to a KML file or a URL to a del.icio.us JSON feed tagged
    'del:bookmark=geo'.

    KML documents will be plotted using the *Placemark/Point/Coordinates*
    element.

    del.icio.us feeds will be plotted using the 'geo:lat=...' and
    'geo:lon=...' tags.

    *$max* may be passed to limit the number of places to add from a given
    data source.

    Returns the number of places added or null if there was an error.

VERSION
    0.31

DATE
    $Date: 2007/08/15 02:24:21 $

AUTHOR
    Aaron Straup Cope <http://www.aaronstraupcope.com/>

REQUIREMENTS
    PHP 5.0 or higher.

SEE ALSO
    * <http://developer.yahoo.com/maps/rest/V1/mapImage.html>
    * <http://www.modestmaps.com/>
    * <http://aaronland.info/php/pmPDF/>
    * <http://aaronland.info/php/qr/>
    * <http://aaronland.info/php/restobook/>
    * <http://aaronland.info/php/machinetag/>
    * <http://www.aaronland.info/weblog/2007/05/21/playa/#mmpdf>
    * <http://www.aaronland.info/weblog/2007/05/21/playa/#re-hello>
    * <http://www.aaronland.info/weblog/2007/07/28/trees/#delmaps_pm>

BUGS
    Sure. Why not.

LICENSE
    Copyright (c) 2007 Aaron Straup Cope.

    This is free software, you may use it and distribute it under the same
    terms as Perl itself.