[Cartoweb-users] display coordinates

Oliver Christen oliver.christen at camptocamp.com
Thu Aug 9 06:01:27 EDT 2007


hi

the coordinates are formated in dhtmlInit by 
this.geoTag.innerHTML = sprintf(this.geoUnits, Math.round(geoX), Math.round(geoY));

replace the Math.round(geoX) by Math.round(geoX*100)/100 and some for Y

that shoud do the trick

regards
Oliver
  ----- Original Message ----- 
  From: guillaume champlong 
  To: carto web 
  Sent: Thursday, August 09, 2007 11:45 AM
  Subject: [Cartoweb-users] display coordinates


  Hi all,

  I would like to know how to display the coordinates with 2 decimals in the floatGeo div (cartoclient.tpl).


  Thanks

  G.



------------------------------------------------------------------------------
  Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 


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


  _______________________________________________
  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/20070809/562c21e1/attachment.html


More information about the Cartoweb-users mailing list