[Chameleon] LocateByAttribute usage note
Jimmy Lam
j.lam at i-real.nl
Fri May 5 04:07:57 EDT 2006
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