[Cartoweb-users] Geoloc coordinates in a new window

Oliver Christen oliver.christen at camptocamp.com
Tue Sep 9 06:23:53 EDT 2008


Hi

the plugin class must implements GuiProvider, then you can output variable to the template and, if you want, trigger some javascript.

regards
Oliver
  ----- Original Message ----- 
  From: Valerio Noti 
  To: cartoweb-users at lists.maptools.org 
  Sent: Tuesday, September 09, 2008 12:17 PM
  Subject: [Cartoweb-users] Geoloc coordinates in a new window


  Hi all,
  I installed geoloc plugin and works fine.
  I'd like to show coordinates in a new window instead of an alert message.
  In geoloc php file I commented this line:
  // $this->getCartoclient()->addMessage('geo_x='.$this->Geo_x.',geo_y='.$this->Geo_y);
  Where (and how) can I write a javascript window.open method and pass to the new window Geo_x and Geo_y
  parameters?

  I tried without success to insert it in renderFormPrepare function:
  return array('geoloc_active' => $this->pluginStatus,
                    'geo_x' => $this->Geo_x,
                    'geo_y' => $this->Geo_y);
                    //open a new window...
                    ........


  Thanks in advance

  Valerio



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


  _______________________________________________
  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/20080909/d16bd0dd/attachment-0001.html


More information about the Cartoweb-users mailing list