[maplab-users] RE: Maplab-users Digest, Vol 2, Issue 15

Yifter Kidane Fikru fikru.yifter at unicatt.it
Tue May 25 03:00:44 EDT 2004


Hi there,
 
It seems to me that this is already discussed before, but here is what how I managed to put, for example adding the 'measure distance' button.
1. In the main_contents php, I added array_push( $aszROSATools, "DIST" ) in the $aszROSATools array list,
2. In the main.php file, I added
 
case "DIST":
     echo "<param name=\"TB_BUT_dist_IMG\" ".
      "value=\"./images/icon_dist_1.gif\">\n";
     echo "<param name=\"TB_BUT_dist_IMG_PR\" ".
      "value=\"./images/icon_dist_2.gif\">\n";
     echo "<param name=\"TB_BUT_dist_HINT\" ".
      "value=\"Measure Distance\">\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=\"PIXEL_SIZE\" VALUE=\".05\">";
     echo "<PARAM NAME=\"TB_BUT_dist_CURSOR_TYPE\" VALUE=\"CROSSHAIR\">";
     echo "<param name=\"TB_BUT_dist_VALUE\" ".
      "value=\"ruler\">\n";
     echo "<PARAM NAME=\"DIST_MSG\" ".
      "value=\"Approximative distance: %s Kms\">n";
 
in the 'foreach ( $aszRosaTools as $szTool )' section.
 
3. In the function checkSelected($szRosaCmd), I added one case (main.php):
 
case "DIST":
  return "DIST";
  break;
 
I am sure there will be an updated ROSA so that we would utilize more buttons.
 
I don't know if this helps you :-)
 
Fikru 

	
	Hey List.
	
	
	
	Quick question. Has anyone customized MapLab by adding their own buttons
	to the Rosa Applet/HTML panel or even one of the sections of MapLab? I
	was thinking of adding a Print button (to the ROSA Applet so users can
	print the maps they view when using an application created in MapLab)
	but haven't a clue how to. Can someone please point me in the right
	direction or supply the code ;-) with an explanation? Thanks a lot.
	
	
	
	Ugan Nair
	
	-------------- next part --------------
	An HTML attachment was scrubbed...
	URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040524/a2bafe1c/attachment-0001.htm
	
	------------------------------
	
	_______________________________________________
	Maplab-users mailing list
	Maplab-users at lists.maptools.org
	http://lists.maptools.org/mailman/listinfo/maplab-users
	
	
	End of Maplab-users Digest, Vol 2, Issue 15
	*******************************************
	

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 6630 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/maplab-users/attachments/20040525/bf16ea29/attachment.bin


More information about the Maplab-users mailing list