HighDots Forums  

This code requires the user 2 click the mouse twice, how do i do itin just one mouse-click?

Javascript JavaScript language (comp.lang.javascript)


Discuss This code requires the user 2 click the mouse twice, how do i do itin just one mouse-click? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Daniish
 
Posts: n/a

Default This code requires the user 2 click the mouse twice, how do i do itin just one mouse-click? - 06-13-2008 , 10:39 AM






Hello,

At present my Google Map marker zooms in on the first onclick and then
opens its Infowindow on the second click - i want to combine the zoom
and opening of the infowindow to a single click of the mouse.

This is currently accomplished by the following code:

map.setCenter(marker.getPoint(),maxZoom,G_SATELLIT E_MAP);
marker.openInfoWindowHtml("<div id='iw' style='padding:5px'>" + info +
"</div>",{maxContent: html, maxTitle: infotitle, noCloseOnClick:
true});


Could someone kindly show me how to solve this issue?



Many thanks

Reply With Quote
  #2  
Old   
SAM
 
Posts: n/a

Default Re: This code requires the user 2 click the mouse twice, how do ido it in just one mouse-click? - 06-13-2008 , 10:59 AM






Daniish a écrit :
Quote:
Hello,

At present my Google Map marker zooms in on the first onclick and then
opens its Infowindow on the second click - i want to combine the zoom
and opening of the infowindow to a single click of the mouse.

??? try :

map.setCenter(marker.getPoint(),maxZoom,G_SATELLIT E_MAP);
marker.openInfoWindowHtml("<div id='iw' style='padding:5px'>" + info +
"</div>",{maxContent: html, maxTitle: infotitle, noCloseOnClick:
false});map.getInfoWindow().maximize();


With a little luck ! ?

--
sm


Reply With Quote
  #3  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: This code requires the user 2 click the mouse twice, how do ido it in just one mouse-click? - 06-13-2008 , 03:41 PM



Daniish wrote:
Quote:
At present my Google Map marker zooms in on the first onclick and then
opens its Infowindow on the second click - i want to combine the zoom
and opening of the infowindow to a single click of the mouse.

This is currently accomplished by the following code:

map.setCenter(marker.getPoint(),maxZoom,G_SATELLIT E_MAP);
marker.openInfoWindowHtml("<div id='iw' style='padding:5px'>" + info +
"</div>",{maxContent: html, maxTitle: infotitle, noCloseOnClick:
true});

Could someone kindly show me how to solve this issue?
So far this does not appear to be a language issue. However,
the Google Maps API documentation and support area is over there
---> http://code.google.com/apis/maps/

See also <http://www.catb.org/~esr/faqs/smart-questions.html> before
you may have to suffer the consequences of not observing that.


PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7 (AT) news (DOT) demon.co.uk>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.