[ka-Map-users] Customized Info tools on Ka-Map

Lorenzo Becchi lorenzo at ominiverdi.com
Mon Feb 25 15:32:05 EST 2008


Ciao Matteo,
> How to add specific attribute information into the xxx.html to creat a
> customized chart for each database record?
>   

I'm not sure I've understood your question.

why don't you change the xxx.html with a xxx.php and add a param in the url?


$myId = $someUniqueValue;

echo "<td align\"center\"><a href=\"#\"
onClick=\"showContent('xxx.php?id=$myId')\"><img id=\"toolINFO\"
src=\"images/a_pixel.gif\" alt=\"info\"></a></td>";


that's how it works in clima.ominiverdi.org

ciao
Lorenzo



matteo rossi wrote:
> Hi list,
> in Perugia, with Lorenzo Becchi's big help we started to customize the
> info tools on a map based on kaExplorer interface for a postgis layer.
> Actually the tool loads the "metadata queryable info" on the left
> frame as shown in the default KaExplorer applications.
> We'd like to customize the tool with something similar to
>
> http://clima.ominiverdi.org/ka-map/htdocs/
>
> where it's possible to load the climate stations charts on a
> transparent layer above the map.
>
> We were able to redirect the call on the right transparent layer, but
> we'd like to extract some specific attribute informations from the
> postgis layer different from the metadata ones in order to create for
> each record a customized table to show.
>
> An example to make our idea more clear.
> In the map_query_float.php we added
>
> echo "<td align\"center\"><a href=\"#\"
> onClick=\"showContent('xxx.html')\"><img id=\"toolINFO\"
> src=\"images/a_pixel.gif\" alt=\"info\"></a></td>";
>
> where xxx.html is a template file now empty.
>
> How to add specific attribute information into the xxx.html to creat a
> customized chart for each database record?
>   

> thanks a lot
>
> matteo
>
> p.s.
> Specific for Lorenzo Becchi: about your clima application, is it
> possibile to read the show_clima.php code? thanks again
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>   


More information about the ka-Map-users mailing list