PHP MapScript zoompoint

Camden Daily cdaily at GMAIL.COM
Wed Apr 6 08:00:38 PDT 2005


It seems that many of the member values of mapscript objects are not
directly accessible.  They are only available to be set with the set()
function.  I do not know if this is a bug or a design decision, but it
would certainly be nice to make those variables all public.

-Camden

On Apr 6, 2005 2:01 AM, Matthew Whiting <whiting at maxnet.co.nz> wrote:
>  After hours working on this, I finally found the problem.
>
>  Setting x and y for the PointObj like this:
>      $point->x = $x;
>      $point->y = $y;
>  does not work.
>
>  This does:
>      $point->setxy($x,$y);
>
>  Why is this a problem?
>
>  Interestingly after setting the points explicitly (as opposed to setxy())
> and then printing the contents, it seems the values are actually set!
>
>  Matthew
>  Hello all,
>
>  Have been trying without success to successfully implement a zoom out
> feature in my application using the zoompoint() function and -2 as the zoom
> factor. For some reason, the image does not end up centred on the point
> clicked on but on a different spot altogether. I'm getting nowhere with
> this. I tried manually changing the extent and this works fine. Any
> suggestions?
>
>  Thanks
>  Matthew
>
>
>
>



More information about the MapServer-users mailing list