PHP MapScript zoompoint
Matthew Whiting
whiting at MAXNET.CO.NZ
Wed Apr 6 00:01:56 PDT 2005
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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050406/fb7da9bf/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3182 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050406/fb7da9bf/attachment.bin>
More information about the MapServer-users
mailing list