Maybe i'm exposing the mistakes of a very beginner: Via
wolfgang.eckardt.name/maritim you can reach my site, most of it isn't
functional yet.
The user may click some points generating a Polyline, which is
displayed correctly. When the user clicks on an existing leg of that
Polyline, the following code segment is used to create some
"rubberbands" for inserting a new waypoint into that leg. The code
segment is located in GUI.js near the end.
function prepareMove(bound) {
g_waitRubberClick = true;
listenMove = GEvent.addListener(g_mapBC, 'mousemove', function
(overlay, point) {
getMousePosition(map,overlay,point);
}
);
do {
if (g_firstMove) {
var rubberband = [bound.begin, g_movPoint, bound.end ];
g_rubberLine= new GPolyline(rubberband,"#FF00FF",3,0.8,
{clickable:false} );
g_mapBC.addOverlay(g_rubberline);
}
} while (g_moveNotFinished)
g_mapBC.removeOverlay(g_rubberline);
return g_movPoint;
}
It seems, that the event listener doesn't ever trigger. I get a error,
telling that the java code isn't responsive because of the never
ending do while loop.
Will appreciate any help, thank you! - Lupus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---