[Cartoweb-users] Hi Problem with my Plugin

oliver oliver.christen at camptocamp.com
Tue Feb 28 09:46:43 EST 2006


the getInit is a forced passage, the first time you access cartoweb. Try doing x($this->serverContext->getMapObj()); this should stop the flow and display the content of the map object. If if doesnt work the first time, then it mean your whole plugin is ignored.
See the outline plugin for a live exemple of getMapObj() call and use.

Regards,
Oliver
  ----- Original Message ----- 
  From: VenuGopal Papasani 
  To: oliver 
  Sent: Tuesday, February 28, 2006 2:38 PM
  Subject: Re: [Cartoweb-users] Hi Problem with my Plugin


  Hi Oliver,
     I am verymuch thankful for u r suggestion.If I have called the method in getInit() I lost the error but the execution does not enter to any of the methods even to the getInit().How can i make my execution start with getInit() in serverDhis.php.No coloring have been seen on my map.

  Bye.
  venu.

   
  On 2/28/06, oliver <oliver.christen at camptocamp.com> wrote: 
    Hi Venu,

    at the constructor level, getMapObj() is not available,
    try calling it at the getInit() level.
    please have a look at http://www.cartoweb.org/doc/misc/plugins_diagram.pdf , this show the flow and order of calls between the client and server 

    Regards
    Oliver
      ----- Original Message ----- 
      From: VenuGopal Papasani 
      To: cartoweb-users at lists.maptools.org 
      Sent: Tuesday, February 28, 2006 10:06 AM
      Subject: [Cartoweb-users] Hi Problem with my Plugin

       
      Hi ,
            I am trying to color my India map.First I am trying to color the map without any functionality on the client side.I have written the following plugin dhisind and i have written the serverDhisind.php witth the functionality to just color my map.I am getting the following error.when i did not call the function colormapfromdata() from the construct the execution never enters into the function but when i added it in the constructor I was getting the following error.I have referred to the following link there is no method called getMapObj() in the ServerPlugin::serverContext class.
      http://cartoweb.org/doc/cw3.0/apidoc/Server/ServerPlugin.html#var$serverContext 

      I need your help in solving this problem.

      I am here attaching my dhisind plugin and my client.ini(client_conf),India.map,India.ini,layers.ini(server_conf)

      The error was as follows::



      Fatal error: Call to a member function getMapObj() on a non-object in C:\wamp\www\cartoweb3\plugins\dhisind\server\ServerDhisind.php on line 41




      Regards,
      Venu.


--------------------------------------------------------------------------


      _______________________________________________
      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/20060228/f3ccd0b9/attachment-0001.html


More information about the Cartoweb-users mailing list