[mapguide-users] launching measure tool out of task pane
    alucas 
    alucas at srtec.com
       
    Mon Mar 26 04:38:40 EDT 2007
    
    
  
Hello,
It's possible to clone or duplicate the built-in tool and launch it in a
specified frame or new window. I'm testing to create my invoke script tool
in the toolbar and digitize and measure the distance, something like this:
// This code in the edit box in studio 2007
mapFrame.DigitizeLine(OnLineDigitized);
// metric units
mapFrame.SetEnglishUnits(false);
// callback function
function OnLineDigitized(line)
{
    var x0 = line.Point(0).X;
    var y0 = line.Point(0).Y;
    var x1 = line.Point(1).X;
    var y1 = line.Point(1).Y;
    var d = Math.sqrt(Math.pow(x1-x0,2)+Math.pow(y1-y0,2));
    alert(d);
} 
Jose Manuel C G wrote:
> 
> Yes, It's possible. Simply redirect the url of this tool to another frame
> or page. I think you can clone the tool in the studio 2k7, or make a new
> one with a javascript function to open pop-up. I prefer div to popup.
> 
> Jose Manuel Cerrejon Gonzalez
> I+D
>  http://mapas-sll.com MAPAS SLL 
> 
> 
> alucas wrote:
>> 
>> Hello,
>> 
>> We need to launch the measure tool out of the task frame because we
>> decided to hide this frame. It's possible?
>> 
>> This is the link: (pop-ups allowed!!!)
>> 
>> http://sigcarreteras.dival.es/mapguide/carreteras/default.jsp
>> 
>> 
>> Antonio Lucas
>> 
>> Project Manager
>> 
>> Servitec Servicios Informáticos S.L
>> www.svl.es
>> 46012 (Valencia)
>> Spain
>> 
> 
> 
-- 
View this message in context: http://www.nabble.com/launching-measure-tool-out-of-task-pane-tf3456144s16610.html#a9669470
Sent from the MapGuide Users mailing list archive at Nabble.com.
    
    
More information about the mapguide-users
mailing list