I solved the problem myself - if using a hack can be called that.
I had already found out how to remove the selection after dragging was
finished by setting focus on a textbox.

It has been written here in more posts that the IE problem was solved
by adding one line with onselectstart that returned false. This event
did fire (I tested by calling an alert) but the selection and the
selection colouring/markup was still made. I expanded this solution by
making a simple javascript function that is called onselectstart. The
function sets focus on a textbox placed in a div tag positioned behind
the map. The dragging works through this without problems and the
rectangle is drawn so a user will notice nothing which must be the
final goal. Not an optimal solution but one that works.

If a better and more correct solution comes along it will be fine but
for now it is ok.

jorgenvester


On 12 Jun., 14:03, jorgenvester <[email protected]> wrote:
> I use dragzoom (http://gmaps-utility-library-dev.googlecode.com/
> trunk/dragzoom/) on this site:
>
> http://udvikling3.w11.dk/guava/TestMap/
>
> As you can see dragging is enabled when the page is called. In Firefox
> all works, but in IE the controls and text in the map are selected
> when the right mousebutton is used for dragging. I have found a hack
> where I can move focus to another element on the page when dragging is
> finished so the selection at least disappear after dragging.  But it
> must be possible to avoid the selection of the map elements in the
> first place. Have seen in another place suggestion about removing
> eventlistener for mouseclick on the map but I do not know whether it
> will work or how the syntax is for listeners not added in the code.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to