How do you disable double click zoom in / out?

302 views
Skip to first unread message

netski

unread,
Jun 23, 2009, 10:53:12 AM6/23/09
to KML Developer Support - Google Earth Plug-in
Hello,

I'm wondering if it's possible to disable the double click zoom in /
out on the Earth without disabling all mouse functions like panning
(GEOptions.setMouseNavigationEnabled)

Cheers,
Timothy
Message has been deleted

Danielg

unread,
Jun 24, 2009, 8:01:50 AM6/24/09
to KML Developer Support - Google Earth Plug-in
Hi Timothy,

google.earth.addEventListener(ge.getGlobe(), 'dblclick', function
(event) {
event.preventDefault();

});


OR


google.earth.addEventListener(ge.getWindow(), 'dblclick', function
(event) {
event.preventDefault();

});

Must do it.

Regards,
Daniel
Reply all
Reply to author
Forward
0 new messages