MapTools.org

[maplab-users] Rosa distance measurement in Maplab

Valerio noti@ciaoweb.it
Wed, 16 Jul 2003 17:53:22 +0200
This is a multi-part message in MIME format.

------=_NextPart_000_0018_01C34BC3.25D221E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,
I tried to add the rosa applet measurement distance button in =
gMapFactory application with the following
code in php file:

// loop through each toolbar and add
foreach ( $aszRosaTools as $szTool )
{
switch( $szTool )
{
...
//other buttons code
...
case "dist":
echo "<param name=3D\"TB_BUT_dist_IMG\" ".
"value=3D\"./images/tool_rect-query_1.gif\">\n";
echo "<param name=3D\"TB_BUT_dist_IMG_PR\" ".
"value=3D\"./images/tool_rect-query_2.gif\">\n";
echo "<param name=3D\"TB_BUT_dist_HINT\" ".
"value=3D\"Misura distanza\">\n";
echo "<param name=3D\"TB_BUT_dist_INPUT\" ".
"value=3D\"dist\">\n";
echo "<param name=3D\"TB_BUT_dist_NAME\" ".
"value=3D\"ROSA_CMD\">\n";
echo "<param name=3D\"TB_BUT_dist_VALUE\" ".
"value=3D\"ruler\">\n";
break;
} // switch
}

But Rosa applet displays without the new button.
Tried also to add pixel_size and dist_msg params without results.
I use PHPMapscript 3.6, mapserver 3.6, rosa applet 1.2, php432 on win2k.


Thanks in advance


Valerio
------=_NextPart_000_0018_01C34BC3.25D221E0
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.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff background=3D"">
<DIV><FONT face=3DArial size=3D2>Hi all,<BR>I tried to add the rosa =
applet=20
measurement distance button in gMapFactory application with the=20
following<BR>code in php file:<BR><BR>// loop through each toolbar and=20
add<BR>foreach ( $aszRosaTools as $szTool )<BR>{<BR>switch( $szTool=20
)<BR>{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...<BR>//other buttons =
code</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>case "dist":<BR>echo "&lt;param=20
name=3D\"TB_BUT_dist_IMG\"=20
".<BR>"value=3D\"./images/tool_rect-query_1.gif\"&gt;\n";<BR>echo =
"&lt;param=20
name=3D\"TB_BUT_dist_IMG_PR\"=20
".<BR>"value=3D\"./images/tool_rect-query_2.gif\"&gt;\n";<BR>echo =
"&lt;param=20
name=3D\"TB_BUT_dist_HINT\" ".<BR>"value=3D\"Misura =
distanza\"&gt;\n";<BR>echo=20
"&lt;param name=3D\"TB_BUT_dist_INPUT\" =
".<BR>"value=3D\"dist\"&gt;\n";<BR>echo=20
"&lt;param name=3D\"TB_BUT_dist_NAME\" =
".<BR>"value=3D\"ROSA_CMD\"&gt;\n";<BR>echo=20
"&lt;param name=3D\"TB_BUT_dist_VALUE\"=20
".<BR>"value=3D\"ruler\"&gt;\n";<BR>break;</FONT><BR><FONT face=3DArial =
size=3D2>} //=20
switch<BR>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>But Rosa applet displays without the =
new=20
button.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Tried also to add pixel_size and =
dist_msg params=20
without results.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I use PHPMapscript 3.6, mapserver 3.6, =
rosa applet=20
1.2, php432 on win2k.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Valerio</FONT></DIV></BODY></HTML>

------=_NextPart_000_0018_01C34BC3.25D221E0--



This archive was generated by Pipermail.