<BR><BR><FONT face="Courier New">&nbsp;Hi guys,<BR>that's perfect. The plugIn is OK. The interaction with other plugins is complete.<BR><BR>Now, I'm working&nbsp;to resolve this situation: I insert a name in my new research plugin, and I get more than a choice from my database,&nbsp;I'd like to see a linkable list of my&nbsp;results so when I click on one of them the map is recentered: is there anybody who has solved it ? do you advice me to modify the query plugin , other info ?<BR><BR>Thanks and regards<BR><BR>Giu<BR></FONT><BR><BR>
<BLOCKQUOTE dir=ltr 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 --------<BR>Da: giuseppe.derossi@email.it<BR>To: "Alexandre Saunier" &lt;alexandre.saunier@camptocamp.com&gt;, "yves.bolognini@camptocamp.com" &lt;yves.bolognini@camptocamp.com&gt;<BR>Cc: cartoweb-users@lists.maptools.org<BR>Oggetto: Re: [Cartoweb-users] writing new plugin<BR>Data: 01/03/06 12:22<BR><BR>Hi all,<BR><BR>To tell the true, I' ve supposed that,&nbsp;so in my last attemp, last night, I wrote the lines as you focused but I get such a syntax error; the lack of attention ?<BR>....&nbsp;to me,&nbsp; the .tpl file too should be different if u want to recenter by setting the found coordinates, shouldn't it ?<BR>&nbsp;<BR>Giu<BR><BR><BR>
<BLOCKQUOTE dir=ltr 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 --------<BR>Da: "Alexandre Saunier" &lt;alexandre.saunier@camptocamp.com&gt;<BR>To: "yves.bolognini@camptocamp.com" &lt;yves.bolognini@camptocamp.com&gt;<BR>Cc: cartoweb-users@lists.maptools.org<BR>Oggetto: Re: [Cartoweb-users] writing new plugin<BR>Data: 01/03/06 11:28<BR><BR><FONT face="Courier New" size=2><BR><BR>Oops! You're right Yves: there was a typo in the tutorial (now fixed).<BR>Please read<BR>$request-&gt;setValue('recenter_x', $x);<BR>$request-&gt;setValue('recenter_y', $y);<BR>instead of<BR>$this-&gt;request-&gt;setValue('recenter_x', $x);<BR>$this-&gt;request-&gt;setValue('recenter_y', $y);<BR>in the last filterPostRequest() definition.<BR><BR>Yves Bolognini wrote:<BR>&gt; Hi Giuseppe,<BR>&gt; <BR>&gt; On your (1) and (2) lines, you use $this-&gt;request-&gt;setValue(). Don't you<BR>&gt; mean $request-&gt;setValue()?<BR>&gt; <BR>&gt; Regards,<BR>&gt; Yves<BR>&gt; <BR>&gt; <BR>&gt; On mer, 2006-03-01 at 10:
  13
+0100, <A class=autolink href="mailto:giuseppe.derossi@email.it">giuseppe.derossi@email.it</A> wrote:<BR>&gt; <BR>&gt;&gt;Hi Oliver,<BR>&gt;&gt;Yes, there is the "implements FilterProvider ", regarding your<BR>&gt;&gt;advising, I can see $x and $y in the code below: if I substitute lines<BR>&gt;&gt;(1) and (2) by "echo $x,$y", olnly for testing, I can read the right<BR>&gt;&gt;coordinates values. Must I do anything else ?<BR>&gt;&gt;<BR>&gt;&gt;Thanks in advantage.<BR>&gt;&gt;<BR>&gt;&gt;Ps: I'm translating the messages in Italian language, I'd like to<BR>&gt;&gt;facilitate the spreading of this powerful product, I can send<BR>&gt;&gt;the .po files if you like .<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; --------- Original Message --------<BR>&gt;&gt; Da: "oliver" &lt;oliver.christen@camptocamp.com&gt;<BR>&gt;&gt; To: <BR>&gt;&gt; Cc: <A class=autolink href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A><BR>&gt;&gt; Oggetto: Re: [Cartoweb
-users] writing new plugin<BR>&gt;&gt; Data: 01/03/06 10:23<BR>&gt;&gt; <BR>&gt;&gt; Hi Giuseppe,<BR>&gt;&gt; <BR>&gt;&gt; did you add "implements FilterProvider " in your plugin class<BR>&gt;&gt; definition ? Otherwise your plugin wont understand what are<BR>&gt;&gt; filterGetRequest and filterPostRequest<BR>&gt;&gt; <BR>&gt;&gt; otherwise, try doing a x($request) in your filterPostRequest<BR>&gt;&gt; function to see whats inside and eventually see if something<BR>&gt;&gt; is wrong.<BR>&gt;&gt; <BR>&gt;&gt; Regards,<BR>&gt;&gt; Oliver<BR>&gt;&gt; ----- Original Message ----- <BR>&gt;&gt; From: <A class=autolink href="mailto:giuseppe.derossi@email.it">giuseppe.derossi@email.it</A> <BR>&gt;&gt; To: oliver <BR>&gt;&gt; Cc: <A class=autolink href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A> <BR>&gt;&gt; Sent: Wednesday, March 01, 2006 9:03 AM<BR>&gt;&gt; Subject: Re: [Cartoweb-users] writing new plugin<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt;
Hi,<BR>&gt; &gt; I fixed the first error, due to a naming error. Now,<BR>&gt;&gt; the plug in is found but I get the following error:<BR>&gt;&gt; <BR>&gt;&gt; Class : CartocommonExceptionMessage : Error [8,<BR>&gt;&gt; Undefined property: ClientRicerca::$request, C:\wamp<BR>&gt;&gt; \www\cartoweb3\projects\MyProject\plugins\Ricerca<BR>&gt;&gt; \client\ClientRicerca.php, 21]<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; My target consists on building up a new recenter<BR>&gt;&gt; plugin. I've followed the indications into<BR>&gt;&gt; HowToWriteANewRecenterPlugIn. This new plugin gets a<BR>&gt;&gt; text string (name of a building and so on) and<BR>&gt;&gt; recenters the map on the specific point. In a db,<BR>&gt;&gt; there is the relation between name and coordinates. <BR>&gt;&gt; I've created a new folder and put the template into<BR>&gt;&gt; it, and that is ok, the plugin find the coordinates<BR>&gt;&gt; but than it crashes and returns the error above.<BR>&gt;&gt; That is my code
:<BR>&gt;&gt; <BR>&gt; &gt; <BR>&gt;&gt; public function filterGetRequest(FilterRequestModifier<BR>&gt;&gt; $request) {}<BR>&gt;&gt; <BR>&gt;&gt; public function<BR>&gt;&gt; filterPostRequest(FilterRequestModifier $request) {<BR>&gt;&gt; $searchString = $request-&gt;getValue('buildName');<BR>&gt;&gt; if (!empty($searchString)) {<BR>&gt;&gt; <BR>&gt;&gt; // To simplify we assume that only one result<BR>&gt;&gt; is returned by the search<BR>&gt;&gt; list($x, $y) =<BR>&gt;&gt; $this-&gt;makeSearch($searchString);<BR>&gt;&gt; <BR>&gt;&gt; $this-&gt;request-&gt;setValue('recenter_x', $x);<BR>&gt;&gt; (1)<BR>&gt;&gt; $this-&gt;request-&gt;setValue('recenter_y', $y);<BR>&gt;&gt; (2)<BR>&gt;&gt; <BR>&gt;&gt; }<BR>&gt;&gt; <BR>&gt;&gt; protected function makeSearch($searchString) {<BR>&gt;&gt; // db connection atc.<BR>&gt;&gt; <BR>&gt;&gt; return array($x, $y);<BR>&gt;&gt; <BR>&gt;&gt; }<BR>&gt;&gt; <BR>&gt;&gt; If I delete the lines (1) and (2) there's no error<BR>&gt;&gt; but I don'
 t get
the recentering. Can y ou help me?<BR>&gt;&gt; Is there a way to set a fixed zoom so I get a visible<BR>&gt;&gt; map in a time ?<BR>&gt;&gt; <BR>&gt;&gt; In my not-smarty plugin, I've set the distances for x<BR>&gt;&gt; and y to set a fixed box around the found center.<BR>&gt;&gt; <BR>&gt;&gt; Thanks in advantage<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; --------- Original Message --------<BR>&gt;&gt; Da: "oliver" &lt;oliver.christen@camptocamp.com&gt;<BR>&gt;&gt; To: <BR>&gt;&gt; Cc: <A class=autolink href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A><BR>&gt;&gt; Oggetto: Re: [Cartoweb-users] writing new<BR>&gt;&gt; plugin<BR>&gt;&gt; Data: 27/02/06 09:06<BR>&gt;&gt; <BR>&gt;&gt; Hi Giuseppe,<BR>&gt;&gt; first, be sure you didnt used any function<BR>&gt;&gt; that require a server side ( your plugin must<BR>&gt;&gt; not implements ServerCaller), <BR>&gt;&gt; also you must not call your plugin on the<BR>&gt;&gt; server side (in<BR>&gt;&gt;
server_conf/yourproject/yourproject.i ni it<BR>&gt;&gt; must not be in loadPlugins = ...)<BR>&gt;&gt; otherwise it may be something to do with the<BR>&gt;&gt; functions or objects you have used but i cant<BR>&gt;&gt; say without seeing your actual code.<BR>&gt;&gt; <BR>&gt;&gt; Regards,<BR>&gt;&gt; Oliver<BR>&gt;&gt; <BR>&gt;&gt; ----- Original Message ----- <BR>&gt;&gt; From: <A class=autolink href="mailto:giuseppe.derossi@email.it">giuseppe.derossi@email.it</A> <BR>&gt;&gt; To: Alexandre Saunier <BR>&gt;&gt; Cc: <A class=autolink href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A> <BR>&gt;&gt; Sent: Sunday, February 26, 2006 11:40<BR>&gt;&gt; PM<BR>&gt;&gt; Subject: Re: [Cartoweb-users] writing<BR>&gt;&gt; new plugin<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; Hi Alexandre,<BR>&gt;&gt; in my first attemp, I wrote a new<BR>&gt;&gt; feature by linking a new html/php<BR>&gt;&gt; page in the main page, the results is<BR>&gt;&gt; ok but it's no too "s
 marty",
then I've<BR>&gt;&gt; just tried to follow the suggested<BR>&gt;&gt; procedures,<BR>&gt;&gt; HowToWriteaRecenterPlugin, Ive<BR>&gt;&gt; called my new plugin myPlugin (what a<BR>&gt;&gt; immagination ), but when I recall my<BR>&gt;&gt; project (which works fine<BR>&gt;&gt; in Cartoweb 3.2 ) I get : <BR>&gt;&gt; <BR>&gt;&gt; Couldn't load plugin ServerMyPlugin.<BR>&gt;&gt; <BR>&gt;&gt; No errors during the compilation. I've<BR>&gt;&gt; not written any server plugin, but it<BR>&gt;&gt; seems I 'm not supposed to do .<BR>&gt;&gt; what's wrong ?<BR>&gt;&gt; <BR>&gt;&gt; Thanks in advantage.<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; --------- Original Message<BR>&gt;&gt; --------<BR>&gt;&gt; Da: "Alexandre Saunier"<BR>&gt;&gt; &lt;alexandre.saunier@camptocamp.com&gt;<BR>&gt;&gt; To: <BR>&gt;&gt; Cc:<BR>&gt;&gt; <A class=autolink href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A><BR>&gt;&gt; Oggetto: 
 Re:
[Cartoweb-users]<BR>&gt;&gt; wri ting new plugin<BR>&gt;&gt; Data: 21/02/06 13:50<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; Hello,<BR>&gt;&gt; <BR>&gt;&gt; have a look at this tutorial:<BR>&gt;&gt; <A class=autolink href="http://cartoweb.org/cwiki/HowToWriteaRecenterPlugin" target=_blank>http://cartoweb.org/cwiki/HowToWriteaRecenterPlugin</A><BR>&gt;&gt; <BR>&gt;&gt; The plugin writing principles<BR>&gt;&gt; are obviously the same for<BR>&gt;&gt; other kinds of <BR>&gt;&gt; plugins...<BR>&gt;&gt; <BR>&gt;&gt; AS<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; ----<BR>&gt;&gt; Email.it, the professional e-mail,<BR>&gt;&gt; gratis per te: clicca qui <BR>&gt;&gt; <BR>&gt;&gt; Sponsor:<BR>&gt;&gt; Campioni GRATIS: Più di 6 milioni di<BR>&gt;&gt; persone si sono affidate a VistaPrint<BR>&gt;&gt; Scopri perché. <BR>&gt;&gt; Clicca qui <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; ______________________________________<BR>&gt;&gt; <BR>&gt;&gt;
_______________________________________________<BR>&gt;&gt; Cartoweb-users mailing list<BR>&gt;&gt; <A class=autolink href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A><BR>&gt;&gt; <A class=autolink href="http://lists.maptools.org/mailman/listinfo/cartoweb-users" target=_blank>http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; ----<BR>&gt;&gt; Email.it, the professional e-mail, gratis per te:<BR>&gt;&gt; clicca qui <BR>&gt;&gt; <BR>&gt;&gt; Sponsor:<BR>&gt;&gt; Scopri come proteggere dai virus il tuo computer e<BR>&gt;&gt; come eliminare ogni tipo di virus! - clicca qui<BR>&gt;&gt; Clicca qui <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;----<BR>&gt;&gt;Email.it, the professional e-mail, gratis per te: clicca qui <BR>&gt;&gt;<BR>&gt;&gt;Sponsor:<BR>&gt;&gt;DA NON PERDERE: Prova gratis per 15 giorni DVDNet Rent e ricevi a casa<BR>&gt;&gt;tua i migliori f
  ilm!
<BR>&gt;&gt;Clicca qui <BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;_______________________________________________<BR>&gt;&gt;Cartoweb-users mailing list<BR>&gt;&gt;Cartoweb-users@lists.maptools.org<BR>&gt;&gt;http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR>&gt; <BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Cartoweb-users mailing list<BR>&gt; <A class=autolink href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A><BR>&gt; <A class=autolink href="http://lists.maptools.org/mailman/listinfo/cartoweb-users" target=_blank>http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR>_______________________________________________<BR>Cartoweb-users mailing list<BR><A class=autolink href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A><BR><A class=autolink href="http://lists.maptools.org/mailman/listinfo/cartoweb-users"
target=_blank>http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR></FONT></DIV></BLOCKQUOTE><BR>
<P><FONT face=Verdana,Arial size=2>----<BR>Email.it, the professional e-mail, gratis per te: <A href="http://www.email.it/cgi-bin/start?sid=3" target=_blank>clicca qui</A> <BR><BR>Sponsor:<BR>Email.it Phone Card: chiami in tutto il mondo a tariffe imbattibili da tutti i telefoni fissi e cellulari! Clicca e scopri come<BR><A href="http://adv.email.it/cgi-bin/foclick.cgi?mid=2686&amp;d=20060301" target=_blank>Clicca qui</A> </FONT><BR><BR><BR>
<HR>
<BR><FONT face="Courier New" size=2>_______________________________________________<BR>Cartoweb-users mailing list<BR><A class=autolink href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A><BR><A class=autolink href="http://lists.maptools.org/mailman/listinfo/cartoweb-users" target=_blank>http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR></FONT></DIV></BLOCKQUOTE><br><p><font face=Verdana,Arial size=2>----<br>
 Email.it, the professional e-mail, gratis per te: <a href="http://www.email.it/cgi-bin/start?sid=3" 
 target="_blank" >clicca qui</a> <br>
 <br>
 Sponsor:<br>
 Campioni GRATIS: Più di 6 milioni di persone si sono affidate a VistaPrint
Scopri perché.
<br>
 <a href="http://adv.email.it/cgi-bin/foclick.cgi?mid=4833&d=20060301" target="_blank" >Clicca qui</a> </font><br>