[Cartoweb-users] php\mapscrip zoompoint function

Oliver Christen oliver.christen at camptocamp.com
Tue Sep 9 05:45:56 EDT 2008


you dont need a layer or id to recenter, thats what recenter_x/recenter_y or 
recenter_bbox are for

----- Original Message ----- 
From: "Fabio D'Ovidio" <fabiodovidio at gmail.com>
To: "Oliver Christen" <oliver.christen at camptocamp.com>
Cc: "Cartoweb Users" <cartoweb-users at lists.maptools.org>
Sent: Tuesday, September 09, 2008 11:16 AM
Subject: Re: [Cartoweb-users] php\mapscrip zoompoint function


> Hi Oliver,
> thanks for the replay.
> The problem is that I haven't a layer, so I haven't an id on which 
> recenter.
> I want to recenter on X,Y coordinates caming from geocoding request...
> I put them in a POINT SHAPE obj....
>
> any sample about this ?
>
> Thanks
>
> -- 
> Ing. Fabio D'Ovidio
>
> INOVA Open Solutions s.r.l.
> Web : http://www.inovaos.it
> Tel.: 081 197 57 600
> mail: fabiodovidio at gmail.com
>
>
> 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: fabiodovidio at gmail.com
>>>
>>> _______________________________________________
>>> Cartoweb-users mailing list
>>> Cartoweb-users at lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>>
>>
>>
>
> 



More information about the Cartoweb-users mailing list