[mapguide-users] why
"parent.parent.mapFrame.DigitizeRectangle(OnRectangleDigitized);
" don t work for selection features in map ????
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Fri Nov 27 06:49:22 EST 2009
Take a look at the frame layout, "MapGuide Developers Guide" page 25
(labeled "page 19"):
http://mapguide.osgeo.org/2.0/documentation.html
"parent" refers to the parent frame.
Depending on what frame your javascript executes from,
you need more or less "parent" references.
The problem is described on page 26-27 (labelled 20-21).
I recommend that you use the function "getMapFrame()" instead, as that
is avalible in almost all frames,
and automatically finds the mapframe.
Regards, Kenneth Skovhede, GEOGRAF A/S
syncro balon skrev:
> Hi
>
> i want indestand why
> "*parent.parent*.mapFrame.DigitizeRectangle(OnRectangleDigitized);"
> don t work and i m having value null
> bat with
> "*parent.parent.parent*.mapFrame.DigitizeRectangle(OnRectangleDigitized);"
> is work but *without selecting features *in Map
>
> Please help me
>
> ------------------------------------------------------------------------
> Messenger débarque dans Hotmail ! Essayez-le !
> <http://www.windowslive.fr/hotmail/web-messenger/>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20091127/db14da2c/attachment.html
More information about the mapguide-users
mailing list