MapTools.org

[maplab-users] Rosa distance measurement in Maplab

Yewondwossen Assefa assefa@dmsolutions.ca
Wed, 16 Jul 2003 15:32:02 -0400
--------------000309010606050901070503
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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="TB_BUTTONS"
>value="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="TB_BUTTONS" value="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=\"TB_BUT_dist_IMG\" ".
>>>"value=\"./images/tool_rect-query_1.gif\">\n";
>>>echo "<param name=\"TB_BUT_dist_IMG_PR\" ".
>>>"value=\"./images/tool_rect-query_2.gif\">\n";
>>>echo "<param name=\"TB_BUT_dist_HINT\" ".
>>>"value=\"Misura distanza\">\n";
>>>echo "<param name=\"TB_BUT_dist_INPUT\" ".
>>>"value=\"dist\">\n";
>>>echo "<param name=\"TB_BUT_dist_NAME\" ".
>>>"value=\"ROSA_CMD\">\n";
>>>echo "<param name=\"TB_BUT_dist_VALUE\" ".
>>>"value=\"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
>>>      
>>>
>>-- 
>>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
>>_______________________________________________
>>
>>
>>
>>    
>>
>
>_______________________________________________
>Maplab-users mailing list
>Maplab-users@dmsolutions.ca
>http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
>
>  
>

-- 
----------------------------------------------------------------
Assefa Yewondwossen           
Software Analyst   

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

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




--------------000309010606050901070503
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
Could you do View source on your browser and send the ROSA applet tag and
parameters ? Are you sure your button images are there ?<br>
<br>
Later,<br>
<br>
Valerio Noti wrote:<br>
<blockquote type="cite" cite="mid002101c34bc2$dbac8100$671b7b3e@Valerio">
  <pre wrap="">Yes Bill,
I manually included "dist" button in php code and the first phtml page
contains a correct

&lt;param name="TB_BUTTONS"
value="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="cite">
    <pre wrap="">Valerio,

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

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


Regards,
Bill


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

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



    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
Maplab-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Maplab-users@dmsolutions.ca">Maplab-users@dmsolutions.ca</a>
<a class="moz-txt-link-freetext" href="http://lists.dmsolutions.ca/mailman/listinfo/maplab-users">http://lists.dmsolutions.ca/mailman/listinfo/maplab-users</a>

  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="$mailwrapcol">-- 
----------------------------------------------------------------
Assefa Yewondwossen           
Software Analyst   

Email: <a class="moz-txt-link-abbreviated" href="mailto:assefa@dmsolutions.ca">assefa@dmsolutions.ca</a>    
<a class="moz-txt-link-freetext" href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</a>

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

</pre>
<br>
</body>
</html>

--------------000309010606050901070503--




This archive was generated by Pipermail.