MapTools.org

[maplab-users] Rosa distance measurement in Maplab

Valerio Noti noti@ciaoweb.it
Fri, 18 Jul 2003 21:35:32 +0200
This is a multi-part message in MIME format.

------=_NextPart_000_003F_01C34D74.84366BD0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Solved. I didn't notice the array of rosa buttons in *_contents.php =
file.
Once included the new button in that array, distance measurement =
appeared in applet.
I'm new in MapScript (and in PHP), so my problem now is how to pass the =
correct value of
pixel_size to the applet. Trying to modify php file generated by Maplab, =
I haven't found
maximum and minimum map extent variables (in meters).
I only noticed the string PrevStateKey which contains something like =
"BBOX=3Dx,y,x,y...".
Have I to extract map coordinates from that string or is there another =
more simple way?

Thanks all

Valerio


  ----- Original Message -----=20
  From: Yewondwossen Assefa=20
  To: Valerio Noti=20
  Cc: maplab-users@dmsolutions.ca=20
  Sent: Wednesday, July 16, 2003 9:32 PM
  Subject: Re: [maplab-users] Rosa distance measurement in Maplab


  Could you do View source on your browser and send the ROSA applet tag =
and parameters ? Are you sure your button images are there ?

  Later,

  Valerio Noti wrote:

Yes Bill,
I manually included "dist" button in php code and the first phtml page
contains a correct

<param name=3D"TB_BUTTONS"
value=3D"zoomin|zoomout|recentre|zoom_full|pquery|dist">

even if it'd automatically create the list of buttons in java =
parameters.

Thanks

Valerio





  Valerio,

Have you included the name "dist" in the list of buttons to display?

i.e.
<param name=3D"TB_BUTTONS" =
value=3D"zoomin|zoomout|recentre|pquery|dist">


Regards,
Bill


Valerio wrote:
    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
      --=20
William A. Bronsema, C.E.T.
Applications Developer
DM Solutions Group Inc.

http://www.dmsolutions.ca
e-mail: bronsema@dmsolutions.ca
phone : +1 (613) 565-5056 ext.25
fax   : +1 (613) 565-0925
_______________________________________________



   =20
_______________________________________________
Maplab-users mailing list
Maplab-users@dmsolutions.ca
http://lists.dmsolutions.ca/mailman/listinfo/maplab-users

 =20

--=20
----------------------------------------------------------------
Assefa Yewondwossen          =20
Software Analyst  =20

Email: assefa@dmsolutions.ca   =20
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



------=_NextPart_000_003F_01C34D74.84366BD0
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><TITLE></TITLE>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Solved. I didn't notice the array of =
rosa buttons=20
in *_contents.php file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Once included the new button in that =
array,=20
distance measurement appeared in applet.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm new in MapScript (and in PHP), so =
my problem=20
now is how to pass the correct value of</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>pixel_size to the applet. Trying to =
modify php file=20
generated by Maplab, I haven't found</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>maximum and minimum map extent =
variables (in=20
meters).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I only noticed the string PrevStateKey =
which=20
contains something like "BBOX=3Dx,y,x,y...".</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Have I to extract map coordinates from =
that string=20
or is there another more simple way?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks all</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Valerio</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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=3Dassefa@dmsolutions.ca=20
  href=3D"mailto:assefa@dmsolutions.ca">Yewondwossen Assefa</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A title=3Dnoti@ciaoweb.it=20
  href=3D"mailto:noti@ciaoweb.it">Valerio Noti</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A =
title=3Dmaplab-users@dmsolutions.ca=20
  =
href=3D"mailto:maplab-users@dmsolutions.ca">maplab-users@dmsolutions.ca</=
A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, July 16, 2003 =
9:32=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [maplab-users] =
Rosa distance=20
  measurement in Maplab</DIV>
  <DIV><BR></DIV>Could you do View source on your browser and send the =
ROSA=20
  applet tag and parameters ? Are you sure your button images are there=20
  ?<BR><BR>Later,<BR><BR>Valerio Noti wrote:<BR>
  <BLOCKQUOTE cite=3Dmid002101c34bc2$dbac8100$671b7b3e@Valerio =
type=3D"cite"><PRE wrap=3D"">Yes Bill,
I manually included "dist" button in php code and the first phtml page
contains a correct

&lt;param name=3D"TB_BUTTONS"
value=3D"zoomin|zoomout|recentre|zoom_full|pquery|dist"&gt;

even if it'd automatically create the list of buttons in java =
parameters.

Thanks

Valerio





  </PRE>
    <BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Valerio,

Have you included the name "dist" in the list of buttons to display?

i.e.
&lt;param name=3D"TB_BUTTONS" =
value=3D"zoomin|zoomout|recentre|pquery|dist"&gt;


Regards,
Bill


Valerio wrote:
    </PRE>
      <BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">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 "&lt;param name=3D\"TB_BUT_dist_IMG\" ".
"value=3D\"./images/tool_rect-query_1.gif\"&gt;\n";
echo "&lt;param name=3D\"TB_BUT_dist_IMG_PR\" ".
"value=3D\"./images/tool_rect-query_2.gif\"&gt;\n";
echo "&lt;param name=3D\"TB_BUT_dist_HINT\" ".
"value=3D\"Misura distanza\"&gt;\n";
echo "&lt;param name=3D\"TB_BUT_dist_INPUT\" ".
"value=3D\"dist\"&gt;\n";
echo "&lt;param name=3D\"TB_BUT_dist_NAME\" ".
"value=3D\"ROSA_CMD\"&gt;\n";
echo "&lt;param name=3D\"TB_BUT_dist_VALUE\" ".
"value=3D\"ruler\"&gt;\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
      </PRE></BLOCKQUOTE><PRE wrap=3D"">--=20
William A. Bronsema, C.E.T.
Applications Developer
DM Solutions Group Inc.

<A class=3Dmoz-txt-link-freetext =
href=3D"http://www.dmsolutions.ca">http://www.dmsolutions.ca</A>
e-mail: <A class=3Dmoz-txt-link-abbreviated =
href=3D"mailto:bronsema@dmsolutions.ca">bronsema@dmsolutions.ca</A>
phone : +1 (613) 565-5056 ext.25
fax   : +1 (613) 565-0925
_______________________________________________



    </PRE></BLOCKQUOTE><PRE wrap=3D""><!---->
_______________________________________________
Maplab-users mailing list
<A class=3Dmoz-txt-link-abbreviated =
href=3D"mailto:Maplab-users@dmsolutions.ca">Maplab-users@dmsolutions.ca</=
A>
<A class=3Dmoz-txt-link-freetext =
href=3D"http://lists.dmsolutions.ca/mailman/listinfo/maplab-users">http:/=
/lists.dmsolutions.ca/mailman/listinfo/maplab-users</A>

  </PRE></BLOCKQUOTE><BR><PRE class=3Dmoz-signature =
cols=3D"$mailwrapcol">--=20
----------------------------------------------------------------
Assefa Yewondwossen          =20
Software Analyst  =20

Email: <A class=3Dmoz-txt-link-abbreviated =
href=3D"mailto:assefa@dmsolutions.ca">assefa@dmsolutions.ca</A>   =20
<A class=3Dmoz-txt-link-freetext =
href=3D"http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</A>

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------

</PRE><BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_003F_01C34D74.84366BD0--



This archive was generated by Pipermail.