[From nobody Thu Aug 9 12:01:43 2007 From: "Oliver Christen" <oliver.christen@camptocamp.com> To: "guillaume champlong" <goutosig@yahoo.fr>, "carto web" <cartoweb-users@lists.maptools.org> Cc: Subject: Re: [Cartoweb-users] display coordinates Date: Thu, 9 Aug 2007 10:02:06 +0000 Content-Type: Multipart/mixed; boundary="NextPart_Webmail_9m3u9jl4l_23187_1186675279_1" --NextPart_Webmail_9m3u9jl4l_23187_1186675279_1 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0029_01C7DA7D.03F3B960" This is a multi-part message in MIME format. ------=_NextPart_000_0029_01C7DA7D.03F3B960 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi the coordinates are formated in dhtmlInit by=20 this.geoTag.innerHTML =3D 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 -----=20 From: guillaume champlong=20 To: carto web=20 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=20 -------------------------------------------------------------------------= ----- _______________________________________________ Cartoweb-users mailing list Cartoweb-users@lists.maptools.org http://lists.maptools.org/mailman/listinfo/cartoweb-users ------=_NextPart_000_0029_01C7DA7D.03F3B960 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.5730.11" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>hi</FONT></DIV> <DIV><FONT size=3D2></FONT>&nbsp;</DIV> <DIV><FONT size=3D2>the coordinates are&nbsp;formated in dhtmlInit by=20 </FONT></DIV> <DIV><FONT size=3D2>this.geoTag.innerHTML =3D sprintf(this.geoUnits,=20 Math.round(geoX), Math.round(geoY));</FONT></DIV> <DIV><FONT size=3D2></FONT>&nbsp;</DIV> <DIV><FONT size=3D2>replace the Math.round(geoX) by = Math.round(geoX*100)/100 and=20 some for Y</FONT></DIV> <DIV><FONT size=3D2></FONT>&nbsp;</DIV> <DIV><FONT size=3D2>that shoud do the trick</FONT></DIV> <DIV><FONT size=3D2></FONT>&nbsp;</DIV> <DIV><FONT size=3D2>regards</FONT></DIV> <DIV><FONT size=3D2>Oliver</FONT></DIV> <BLOCKQUOTE=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A title=3Dgoutosig@yahoo.fr = href=3D"mailto:goutosig@yahoo.fr">guillaume=20 champlong</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20 title=3Dcartoweb-users@lists.maptools.org=20 href=3D"mailto:cartoweb-users@lists.maptools.org">carto web</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, August 09, 2007 = 11:45=20 AM</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] = display=20 coordinates</DIV> <DIV><BR></DIV>Hi all,<BR><BR>I would like to know how to display the=20 coordinates with 2 decimals in the floatGeo div=20 (cartoclient.tpl).<BR><BR><BR>Thanks<BR><BR>G.<BR> <P> <HR SIZE=3D1> Ne gardez plus qu'une seule adresse mail ! <A=20 href=3D"http://www.trueswitch.com/yahoo-fr/">Copiez vos mails</A> vers = Yahoo!=20 Mail=20 <P> <HR> = <P></P>_______________________________________________<BR>Cartoweb-users = mailing list<BR><A=20 = href=3D"mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.ma= ptools.org</A><BR><A=20 = href=3D"http://lists.maptools.org/mailman/listinfo/cartoweb-users">http:/= /lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR></BLOCKQUOTE><= /BODY></HTML> ------=_NextPart_000_0029_01C7DA7D.03F3B960-- --NextPart_Webmail_9m3u9jl4l_23187_1186675279_1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Cartoweb-users mailing list Cartoweb-users@lists.maptools.org http://lists.maptools.org/mailman/listinfo/cartoweb-users --NextPart_Webmail_9m3u9jl4l_23187_1186675279_1-- ]