legend

Eduardo Zenaide ezenaide at GMAIL.COM
Wed Jan 17 14:21:34 EST 2007


ok, closing the thread i'm posting the solution i've made for non-embedded
legend for GMap based applications. nothing new, it's all based on
GMapDrawKeyMap().:

this goes on inc.php file (as gmap75.inc.php):

function GMapDrawLegend(){
    GLOBAL $gpoMap;
    GLOBAL $gAppletImgFmt, $gImagesFmt;

    $img = $gpoMap->drawLegend();
    $url = $img->saveWebImage($gImagesFmt, 0, 0, -1);

    printf("<b>Legend:</b><br/><br/><input type=image src=$url name=legend
/>");
}

and it goes on template file (as gmap75.phtml):

<?php GMapDrawLegend() ?>


hope someone use it :)
well, i'm using...


-- 
Eduardo Zenaide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070117/cc2ed42d/attachment.html


More information about the mapserver-users mailing list