[mapguide-users] draw_line
andrea tiveron (e-metodi)
andrea.tiveron at e-metodi.it
Fri Aug 26 14:05:30 EDT 2011
to draw a line
you recall the mousedown event two times
but MapGuide receives the first event when the "script button" is selected
so you have to prevent this first selection
to resolve this problem, I use a variable DisableMapClick and set it to
true or false
after a function onMouseDown (e) I enter the script above to prevent the
first selection and other conditions
if (DisableMapClick)
{
return false;
}
I hope this help you
andrea
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of anand
Sent: giovedì 25 agosto 2011 06:27
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] draw_line
hi all,
I am using Mapguide OpenSource 2.1 and maestro 3.0 with IIS 5.1 and .net2.0
in windows xp. In my application map is coming from the database "Sql server
2008", and when i draw a line on map it clears immediately, I want to save
the drawn line in my database. Can anyone tell me how this has to be done?
Thanks & regards,
Anand
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/draw-line-tp6723238p6723238.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
--
This message was scanned by ESVA and is believed to be clean.
More information about the mapguide-users
mailing list