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: [email protected]
[mailto:[email protected]] On Behalf Of anand
Sent: giovedì 25 agosto 2011 06:27
To: [email protected]
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

--
This message was scanned by ESVA and is believed to be clean.

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to