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

Reply via email to