[mapguide-users] Measure tool...problem whit start in
TaskPaneFrame.
SER&TEC Antonio Lucas
alucas at svl.es
Fri Apr 20 08:03:44 EDT 2007
Hello Maciekj,
I think if you want to use the measure dialog that comes with the original
viewer, the problem could be the frame structure. When you try to access
from the measure dialog to the viewer, is possible that you cannot access to
the correct frame. I guess that you could modify the sources of this dialog
: \viewerfiles\measureui.templ to ensure that are accessing from your popup
or external frame to the viewerframe.
You can see another solution in this url:
http://www.svl.es/mapguide/carreteras
you need first of all go to the correct zoom and then, launch the measure
tool and digitize one linestring, when you finish, you could see the results
in the floating div.
This project is under development, is possible to view some bugs (i.e with
iexplorer the zoom level go to 0.001)
If you like this solution, I can post any source example.
(Sorry for my English...)
Thanks
Antonio Lucas
Project Manager
alucas at svl.es
www.svl.es
tel. 963·959·513
Fax 963·731·756
Avda. Ausias March 79 - 1
46013 Valencia
Calle Canalejas 13 - 3
03001 Alicante
Este mensaje puede contener información confidencial, privilegiada o datos
de carácter personal. Si usted no es el destinatario indicado en el mismo o
el responsable de su entrega, le rogamos no copie o entregue este mensaje a
nadie más. En dicho caso, por favor, destruya este mensaje y comunique a
Servitec Servicios Informáticos S.L. su recepción. Las opiniones,
conclusiones y demás informaciones incluidas en este mensaje que no estén
relacionadas con asuntos profesionales de Servitec Servicios Informáticos
S.L. se entenderán que nunca se han dado ni están respaldadas por Servitec
Servicios
-----Mensaje original-----
De: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] En nombre de Maciej
Skorczewski
Enviado el: viernes, 20 de abril de 2007 12:17
Para: mapguide-users at lists.osgeo.org
Asunto: [mapguide-users] Measure tool...problem whit start in TaskPaneFrame.
Hi all!
In my aplication (MGOS 1.1+PHP) i use TaskFrame to show info about
clicked object on map....i call it by:
parent.ViewerFrame.GetTaskFrame().location.href ="some_page.php";
BUT after load info about clicked object in TaskPaneFrame when i try
load Measure tool in it i can't start Measure.
in Studio i add Invoke Script to button in toolbar
------------------
function miarka()
{
GetTaskFrame().location.href =
'http://127.0.0.1:8008/mapguide/mapviewerphp/measureui.php?PARTIAL=0&TOTAL=0
&WIDTH=300&LOCALE=pl&SESSION='+parent.ViewerFrame.mapFrame.GetSessionId()+'&
MAPNAME=mapname&TGT=1&POPUP=0&CMDINDEX=24';
}
miarka();
------------------
i load Measure tool corect but can't start measure. when i press Clear
or Stop in Measure tool i get error
---
GetParent().ForwardMouseDown is not a function
[Break on this error] GetParent().ForwardMouseDown(document, e);
---
So guestion is how sould i call or load this Measure Tool in TaskPaneFrame.
--
Maciej Skórczewski
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list