<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Be sure you have at least some knowledge in PHP programmation.
If not, I would strongly suggest either ask for the help of some programmer or
follow some programmation tutorials.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>You have to create a plugin. This plugin will query the
Postgres/postgis database.</FONT></DIV>
<DIV><FONT size=2>You can use the Tables plugin to format the query result, but
that's not an obligation.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Please read carefuly the chapter 2 of the developer manual <A
href="http://www.cartoweb.org/doc_head/docbook/xhtml/dev.newplugin.html">http://www.cartoweb.org/doc_head/docbook/xhtml/dev.newplugin.html</A></FONT></DIV>
<DIV><FONT size=2>and understand the data flow in Cartoweb <A
href="http://www.cartoweb.org/doc/misc/plugins_diagram.pdf">http://www.cartoweb.org/doc/misc/plugins_diagram.pdf</A></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Your plugin will only need a Client part, I
think.</FONT></DIV>
<DIV><FONT size=2>If the data you want to display depends of the layers
selected/displayed, you can get the list of active layers like
this:</FONT></DIV>
<DIV><FONT size=2>$layersPlugin =
$this->cartoclient->getPluginManager()->getPlugin('layers');</FONT></DIV>
<DIV><FONT size=2>$activatedLayers =
$layersPlugin->getSelectedLayers();</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Have a look at the examples in <A
href="http://www.cartoweb.org/cwiki/HowTo">http://www.cartoweb.org/cwiki/HowTo</A> </FONT></DIV>
<DIV><FONT size=2>Im sure there are several pieces of code you can easily
use.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Looking at existing plugins to see what they contain and
how they work can help you a lot too.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>And dont forget to search the mailing-list, maybe some of your
futur problems/questions have already been answered <A
href="http://lists.maptools.org/search.phtml?config=cartoweb-users">http://lists.maptools.org/search.phtml?config=cartoweb-users</A></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=maduramw@yahoo.com href="mailto:maduramw@yahoo.com">Madura
Weerasinghe</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, March 29, 2008 5:01
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Cartoweb
Tables</DIV>
<DIV><BR></DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I'm an undergraduate of University of Colombo, Sri Lanka. I'm developing
an on-line traffic information system using Cartoweb. I would like to thank u
people for developing such a great piece of software. Anyway I have a small
problem and I would be grateful if u can help me. The problem is this.</DIV>
<DIV> </DIV>
<DIV>The map is generated using data stored in a PostGIS database. When the
map loads in the browser, I want to display some information in a table,
retrieved from the database. (As in the query plugin, but without any user
intervention and it should be automatically displayed when the map loads). As
I feel, I think Tables plugin should be integrated with the layers plugin.
Please help me to achieve this task (how to do this).</DIV>
<DIV> </DIV>
<DIV>So again I would be grateful to u.</DIV>
<DIV> </DIV>
<DIV>Thank you in advance.</DIV>
<DIV> </DIV>
<DIV>Madura</DIV></DIV></DIV><BR>
<HR SIZE=1>
Like movies? Here's a limited-time offer: <A
href="http://us.rd.yahoo.com/evt=47522/*http://tc.deals.yahoo.com/tc/blockbuster/text4.com">Blockbuster
Total Access</A> for one month at no cost.
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>