you mean improve the performances ?

be sure the cache system is enabled (mode=production)
if you use postgis layers, use PROCESSING "CLOSE_CONNECTION=DEFER for these layers in the mapfile so the connection are kept open till then end of the mapfile parsing. if you use a specific EPSG projection, you can move the projection definition to the top of the EPSG file (so mapserver doesnt parse several thousand line to find it)

thats all i can think at the moment

It works!!
There was an error in the code on a "onclick" event .... I solved it !

Thanks again for your help !!!!

Anyway.... how many ways do you know to speed a cartoweb project ?

Bye

Oliver Christen ha scritto:
the variables are received from POST, they should be cleared after the action. if the variable are sent via an ajax action, you may need to clear them via javascript using the onAfterAjaxCall stage
see http://www.cartoweb.org/doc/cw3.5/xhtml/user.ajax.html



Ok, it works!!...
...but how can I free ['recenter_x'], [recenter_y], [recenter_scale] after recentering on (myX, myY) coords ?


Thanks u

Oliver Christen ha scritto:
use print and print_r to see what it is doing or not doing

by the way, you must also set the scale as you did the first time

$request->setValue('recenter_x', $this->myCoords['x']);
$request->setValue('recenter_y', $this->myCoords['y']);
$request->setValue('recenter_scale', 5000);
$request->setValue('recenter_doit', 1);


Sure!
my code is :

if (!is_null ($poPoint)){
        $request->setValue('recenter_x', $poPoint->x);
        $request->setValue('recenter_y', $poPoint->y);
        $request->setValue('recenter_doit', 1);
        }

but nothing has changed...

Thanks

Oliver Christen ha scritto:

well, obviously you must add some IF condition around the $request->setValue so they dont get activated all the time.



Hi Oliver,
the problem is that after I change ClientMyplugin.php in the way u suggested me, zoom functionalities don't work on the whole application.....and in every case my plugin doesn't zoom on the X,Y.

..so, I think I must configure location.ini both for client and server, in a particular way..

is it ?

Thanks

Oliver Christen ha scritto:
via post, I think you also need to set "recenter_doit = 1"


Hello...
I'm trying to do recentering on X,Y coordinates returned from a geocoding service trought my project plugin, as following:

public function filterPostRequest(FilterRequestModifier $request)
   {

     ......

        $request->setValue('recenter_x', $this->myCoords['x']);
$request->setValue('recenter_y', $this->myCoords['y']); $request->setValue('recenter_scale', 5000);

  }

but it doesn't work, in the sense that my plugin doesn't recenter on X,Y and doesn't change scale...

PS: my plugin returns correctly X and Y

Why ?

Oliver Christen ha scritto:
Hi

why dont you simply use the recenter_x/recenter_y filter to do your recentering ?

regards
Oliver


Hello!
I wrote a plugin in order to geocoding addresses. Now I'm trying to zoom in on the X,Y returned values. I'd like to do something like:


$map_path="C:/ms4w/apps/cartoweb3/projects/k21/server_conf/myProj/";
        $map_file="myMap.map";
       $gpoMap = ms_newMapObj($map_path.$map_file);

       $my_extent = ms_newrectObj();
        $my_extent->setextent(?,?,?,?);

$gpoMap->zoompoint(ZOOMFACTOR,$myXY, WIDTH, HEIGHT, EXTENT);

how can I get easly the current EXTENT and ZOOMFACTOR, WIDTH, HEIGHT ?

I image I must use filterPostRequest function....  isn't it ?

Thanks

--
Ing. Fabio D'Ovidio

INOVA Open Solutions s.r.l.
Web : http://www.inovaos.it
Tel.: 081 197 57 600
mail: [EMAIL PROTECTED]

_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users




--
Ing. Fabio D'Ovidio

INOVA Open Solutions s.r.l.
Web : http://www.inovaos.it
Tel.: 081 197 57 600
mail: [EMAIL PROTECTED]




--
Ing. Fabio D'Ovidio

INOVA Open Solutions s.r.l.
Web : http://www.inovaos.it
Tel.: 081 197 57 600
mail: [EMAIL PROTECTED]









--
Ing. Fabio D'Ovidio

INOVA Open Solutions s.r.l.
Web : http://www.inovaos.it
Tel.: 081 197 57 600
mail: [EMAIL PROTECTED]





--
Ing. Fabio D'Ovidio

INOVA Open Solutions s.r.l.
Web : http://www.inovaos.it
Tel.: 081 197 57 600
mail: [EMAIL PROTECTED]



_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to