<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I changed the cartoclient.tpl to load the wmsBrowserLight variables and
it works but i noticed 2 things:<br>
<blockquote>- the showResponse procedure raise a javascript error since
it lacks the req parameter. So i modified wmsBrowserLight.tpl (line 4)
with <br>
  <i>function showResponse (<b>req</b>) {</i><br>
</blockquote>
<blockquote>- I don't have the server list, i just have the textbox to
type the url. Whereas I filled the client_conf/wmsBrowserLight.ini with
these values:<br>
  <i>catalogtype = ini</i><br>
  <i>servers.0.label = Sandre / Ouvrage</i><br>
  <i>servers.0.url = <a class="moz-txt-link-freetext" href="http://services.sandre.eaufrance.fr/geo/ouvrage">http://services.sandre.eaufrance.fr/geo/ouvrage</a></i><br>
  <i>servers.1.label = Geosignal</i><br>
  <i>servers.1.url = <a class="moz-txt-link-freetext" href="http://www.geosignal.org/cgi-bin/wmsmap">http://www.geosignal.org/cgi-bin/wmsmap</a></i><br>
  <i>catalogtype = gn</i><br>
  <i>gn = <a class="moz-txt-link-freetext" href="http://sandre.eaufrance.fr/geonetwork">http://sandre.eaufrance.fr/geonetwork</a></i><br>
  <i>; unset gnuser and gnpassword if no login has to be made</i><br>
  <i>gnuser = cartoweb</i><br>
  <i>gnpassword = cartoweb</i><br>
  <i>gnlang = en</i><br>
  <i>; gnQuery is how CartoWeb could get the list of services in the
node</i><br>
  <i>gnQuery = "category=Services"<br>
  </i><br>
I guess the {if $servers neq null} in wmsBrowserLight.tpl return false
but i can't figure why.<br>
</blockquote>
<br>
Simon.<br>
<br>
<br>
<br>
Simon ORTET a &eacute;crit&nbsp;:
<blockquote cite="mid:46AF4A25.9020900@silogic.fr" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Hi and thanks for your answer.<br>
  <br>
  <b>For bboxhistory:</b><br>
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):<br>
  <pre><i>Requested plugin bboxHistory is not loaded. Check your AJAX call parameters (currently ajaxActionRequest=BboxHistory.moveTo)</i>


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.
           <i> if (isset($this-&gt;state-&gt;position)) {
                    $smarty-&gt;assign('has_prev', is_null($this-&gt;state-&gt;position) &amp;&amp;
            count($this-&gt;state-&gt;history) &gt; 1 || $this-&gt;state-&gt;position &gt; 0);

                        $smarty-&gt;assign('has_next', !is_null($this-&gt;state-&gt;position) &amp;&amp;
            $this-&gt;state-&gt;position &lt; count($this-&gt;state-&gt;history) - 2);
                }</i>
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
  </pre>
  <br>
Oliver Christen a &eacute;crit&nbsp;:
  <blockquote>
    <meta http-equiv="Content-Type" content="text/html;">
    <meta content="MSHTML 6.00.5730.11" name="GENERATOR">
    <style></style>
    <div><font size="2">hi</font></div>
    <div><font size="2">thank you for testing</font></div>
    <div>&nbsp;</div>
    <div><font size="2">I cant seem to be able to reproduce the error
with bboxhistory.</font></div>
    <div><font size="2">can you try to replace line 186 in </font><font
 size="3">ClientBboxHistory.php</font></div>
    <div><font size="2">if (count($this-&gt;state-&gt;history) &gt; 0) {</font></div>
    <div><font size="2">by</font></div>
    <div><font size="2">if (isset($this-&gt;state-&gt;history)
&amp;&amp;
count($this-&gt;state-&gt;history) &gt; 0) {<br>
    </font><font size="2">and tell me if this solve the problem</font></div>
    <div>&nbsp;</div>
    <div><font size="2">by the way, the bboxhistory only work with
ajax,
so you need to enable ajax in your project.</font></div>
    <div>&nbsp;</div>
    <div><font size="2">about the wmslayerlight, try to replace the
$wmsBrowser template variable by $wmsBrowserLight, there should be at
least&nbsp;3 occurences in the default cartoclient.tpl.</font></div>
    <div><font size="2">this is&nbsp;effectively an error&nbsp;and it will be
corrected,</font></div>
    <div><font size="2">thank you.</font></div>
    <div>&nbsp;</div>
    <div><font size="2">regards</font></div>
    <div><font size="2">Oliver</font></div>
    <div><font size="2">&nbsp;</font></div>
    <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
      <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
      <div
 style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
      <a moz-do-not-send="true" title="simon.ortet@silogic.fr"
 href="mailto:simon.ortet@silogic.fr">Simon ORTET</a> </div>
      <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
      <a moz-do-not-send="true"
 title="cartoweb-users@lists.maptools.org"
 href="mailto:cartoweb-users@lists.maptools.org">cartoweb</a> </div>
      <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Tuesday, July 31, 2007 3:09 PM</div>
      <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
[Cartoweb-users] Cartoweb 3.4 and new plugins</div>
      <div><br>
      </div>
Hi list,<br>
      <br>
I installed Cartoweb 3.4 RC1 and the install process went ok.<br>
So i tried to modify a demo application to load new plugins and i can't
make them work.<br>
      <br>
bboxHistory:<br>
      <blockquote>I added 'bboxHistory' to LoadPugins line in my
client.ini and {$bboxHistoryForm} to my cartoclient.tpl but i've got
error at project loading:<br>
        <pre>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]

  </pre>
      </blockquote>
WmsBrowserLight and ogcLayerLoader<br>
      <blockquote>I added mapOverlay, ogcLayerLoader, wmsBrowserLight
in
both client.ini and 'mapid'.ini <br>
I copied ogcLayerLoader.ini and wmsBrowserLight.ini in client_conf and
ogcLayerLoader.ini in server_conf<br>
but nothing happens: no errors but no new tabs or tools. Did i forgot
something to enable plugins loading?<br>
        <br>
      </blockquote>
Thanks<br>
      <blockquote><br>
      </blockquote>
      <p> </p>
      <hr> _______________________________________________<br>
Cartoweb-users mailing list<br>
      <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</a><br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://lists.maptools.org/mailman/listinfo/cartoweb-users">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a><br>
    </blockquote>
  </blockquote>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Cartoweb-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/cartoweb-users">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a>
  </pre>
</blockquote>
</body>
</html>