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