[Chameleon] LocateByAttribute usage note
Delfos, Jacob
Jacob.Delfos at maunsell.com
Sun May 7 19:38:05 EDT 2006
Hi Jimmy,
I tested it without JSAPI, and it seems that it indeed doesn't work
properly. I guess the easiest way for now is to include the BoundingBox
widget, and set its visibility to "hidden".
It wasn't a very clean way for me to use that javascript function. Just
that it appears less than trivial to simply zoom to certain coordinates
without losing tool-status, and other things going wrong. I'll have to
look into what the cleanest way to do it is.
Regards,
Jacob
> -----Original Message-----
> From: Jimmy Lam [mailto:j.lam at i-real.nl]
> Sent: 5 May 2006 16:08
> To: chameleon at lists.maptools.org
> Cc: Delfos, Jacob
> Subject: Re: [Chameleon] LocateByAttribute usage note
>
> Hi Jacob,
>
> Yes, I saw the applyBoundingBox Javascript function in the
> LocateByAttribute widget. I didn't understand why it didn't
> work until I
> noticed there was no ParseURL function. The NAV_CMD ZOOM_BBOX
> is never
> processed unless there is a BoundingBoxPopup widget. I took a look at
> UpdateMap.php but if I'm not mistaken, isn't it used only in
> CWCJSAPI mode?
> I couldn't find any errors in logs or Javascript errors.
>
> Regards,
>
> Jimmy Lam
>
> Delfos, Jacob wrote:
> > Hi Jimmy,
> >
> > The widget contains a copy of the function that was used by the
> > BoundingBoxPopup widget, which does the zooming. However,
> this widget
> > does not need to be in the template in order for
> LocateByAttribute to
> > work.
> >
> > In UpdateMap.php, around line 180, some widgets are included
> > automatically on the basis of which commands are
> encountered. I am not
> > sure exactly why the BoundingBoxPopup widget needs to be loaded when
> > this command is encountered.
> >
> > You should not be running into problems, unless if you actually
> > physically removed files, preventing them from being
> included. If you
> > still have issues, please let me know what you PHP log is saying, or
> > which javascript errors show up.
> >
> > Regards,
> >
> > Jacob
> >> ----Original Message-----
> >> From: chameleon-bounces at lists.maptools.org
> >> [mailto:chameleon-bounces at lists.maptools.org] On Behalf Of
> Jimmy Lam
> >> Sent: 4 May 2006 18:39
> >> To: chameleon at lists.maptools.org
> >> Subject: [Chameleon] LocateByAttribute usage note
> >>
> >> Hi,
> >>
> >> I was having a problem with the LocateByAttribute widget where it
> >> wouldn't zoom to the feature after a successful query. There is no
> >> mentioning of this in the usage text file included or mailing list
> >> archives but LocateByAttribute widget makes use of the
> BoundingBoxPop
> >> NAV_CMD called ZOOM_BBOX. This means the presence of that
> widget is
> >> needed to set the bounding box or it will just retain its current
> >> extents. Having a Chameleon app in CWCJSAPI mode will work too.
> >> Most people will already know this, but I thought this
> might be worth
> >> mentioning in future documentation.
> >>
> >> Regards,
> >>
> >> Jimmy Lam
> >> _______________________________________________
> >> Chameleon mailing list
> >> Chameleon at lists.maptools.org
> >> http://lists.maptools.org/mailman/listinfo/chameleon
> >>
>
More information about the Chameleon
mailing list