[Cartoweb-users] Hi Problem with my Plugin

oliver oliver.christen at camptocamp.com
Tue Feb 28 06:21:44 EST 2006


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/fc31b835/attachment.html


More information about the Cartoweb-users mailing list