[Cartoweb-users] Recentering zoom parameters
Oliver Christen
oliver.christen at camptocamp.com
Mon Dec 4 09:25:26 EST 2006
Hi Max
I see two possible causes for your problem.
First, you have set a minScale (location.ini, server side!) whose value is
greater than what you want to use in your recenter (50 ?)
Seconly, another plugin is already sending a scale value
It is sometimes useful to put the following lines in your main template to
see whats going on:
<pre>
Request:
{$debug_request}
</pre>
Regards
Oliver
> I've been with some troubles with my recentering
> application.
>
> I can actually, locate a point in the map, recenter on
> it, but I have not been able to figure out how to zoom
> this point.
>
> I've tried to use the recenter_scale variable, by
> setting a new value (setValue('recenter_scale',
> 'numericalvalue') ) each time the recentering is done,
> but nothing seems to change when this parameter is
> set.
>
> Something like:
>
> public function
> filterPostRequest(FilterRequestModifier $request) {
> $searchStringID = $request->getValue('idEstacao');
> if(!empty($latLon)){
> //some pieces of code, retrieval of smarty
>
> //template variables, etc...
> $request->setValue('show_crosshair', '1');
> $request->setValue('recenter_scale', '50');
> }
>
> I also tried to figure out how the location plugin
> works, but I have not found any references regarding
> zooming and scale parameters. How can the recentering
> scale be set at the time I perform the recentering
> operation?
>
> Thanks in advance,
>
> Max Ueda
>
>
>
> ____________________________________________________________________________________
> Cheap talk?
> Check out Yahoo! Messenger's low PC-to-Phone call rates.
> http://voice.yahoo.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