[Cartoweb-users] Cartoweb 3.4 and new plugins
Simon ORTET
simon.ortet at silogic.fr
Tue Jul 31 10:41:41 EDT 2007
Hi and thanks for your answer.
*For bboxhistory:*
on the demoCW3 project (delivered with CW 3.4RC1, ajax enabled) the
plugin is loaded and i can see the 2 arrows. But i had an error on first
zoomin action (i hadn't replaced line 186 yet):
/Requested plugin bboxHistory is not loaded. Check your AJAX call parameters (currently ajaxActionRequest=BboxHistory.moveTo)/
So i jumped on my custom project (ajax enabled) and i replaced line 186 with the isset function but now the error is on line 112:
message: Error [8, Undefined property: stdClass::$position, D:\Program Files\cartoweb-withdemo-3.4.0-RC1\cartoweb3\plugins\bboxHistory\client\ClientBboxHistory.php, 112]
So i put isset on position property and no error anymore.
/ if (isset($this->state->position)) {
$smarty->assign('has_prev', is_null($this->state->position) &&
count($this->state->history) > 1 || $this->state->position > 0);
$smarty->assign('has_next', !is_null($this->state->position) &&
$this->state->position < count($this->state->history) - 2);
}/
So now on both projects i have the two arrows, i have no error at loading or zoom, but nothing happens: the 2 arrows keep disabled after several zoom operations.
I guess the isset() i added paralysed the plugin.
Now I'm going to test wmsBrowserLight.
Thanks again
Oliver Christen a écrit :
> hi
> thank you for testing
>
> I cant seem to be able to reproduce the error with bboxhistory.
> can you try to replace line 186 in ClientBboxHistory.php
> if (count($this->state->history) > 0) {
> by
> if (isset($this->state->history) && count($this->state->history) > 0) {
> and tell me if this solve the problem
>
> by the way, the bboxhistory only work with ajax, so you need to enable
> ajax in your project.
>
> about the wmslayerlight, try to replace the $wmsBrowser template
> variable by $wmsBrowserLight, there should be at least 3 occurences in
> the default cartoclient.tpl.
> this is effectively an error and it will be corrected,
> thank you.
>
> regards
> Oliver
>
>
> ----- Original Message -----
> *From:* Simon ORTET <mailto:simon.ortet at silogic.fr>
> *To:* cartoweb <mailto:cartoweb-users at lists.maptools.org>
> *Sent:* Tuesday, July 31, 2007 3:09 PM
> *Subject:* [Cartoweb-users] Cartoweb 3.4 and new plugins
>
> Hi list,
>
> I installed Cartoweb 3.4 RC1 and the install process went ok.
> So i tried to modify a demo application to load new plugins and i
> can't make them work.
>
> bboxHistory:
>
> I added 'bboxHistory' to LoadPugins line in my client.ini and
> {$bboxHistoryForm} to my cartoclient.tpl but i've got error at
> project loading:
>
> message: Error [8, Trying to get property of non-object, D:\Program Files\cartoweb-withdemo-3.4.0-RC1\cartoweb3\plugins\bboxHistory\client\ClientBboxHistory.php, 186]
>
>
>
> WmsBrowserLight and ogcLayerLoader
>
> I added mapOverlay, ogcLayerLoader, wmsBrowserLight in both
> client.ini and 'mapid'.ini
> I copied ogcLayerLoader.ini and wmsBrowserLight.ini in
> client_conf and ogcLayerLoader.ini in server_conf
> but nothing happens: no errors but no new tabs or tools. Did i
> forgot something to enable plugins loading?
>
> Thanks
>
>
> ------------------------------------------------------------------------
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20070731/00543893/attachment.html
More information about the Cartoweb-users
mailing list