PHP MapScript zoompoint
Matthew Whiting
whiting at MAXNET.CO.NZ
Wed Apr 6 14:07:04 PDT 2005
I don't mind them being private variables and using get/set functions.
My frustration was with it not being obvious I couldn't directly assign
and with it appearing to have worked when displaying contents of the
point. So, I had to gradually disect a working version replacing with my
code until I found the lines causing problems!
Anyway, on to more exciting coding now... ;o)
Cheers
Matthew
Camden Daily wrote:
>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
>>
>>
>>
>>
>>
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050407/7564bda6/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/20050407/7564bda6/attachment.bin>
More information about the MapServer-users
mailing list