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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daniish

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

    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(m arker.getPoint( ),maxZoom,G_SAT ELLITE_MAP);
    marker.openInfo WindowHtml("<di v id='iw' style='padding: 5px'>" + info +
    "</div>",{maxConte nt: html, maxTitle: infotitle, noCloseOnClick:
    true});


    Could someone kindly show me how to solve this issue?



    Many thanks
  • SAM

    #2
    Re: This code requires the user 2 click the mouse twice, how do ido it in just one mouse-click?

    Daniish a écrit :
    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(m arker.getPoint( ),maxZoom,G_SAT ELLITE_MAP);
    marker.openInfo WindowHtml("<di v id='iw' style='padding: 5px'>" + info +
    "</div>",{maxConte nt: html, maxTitle: infotitle, noCloseOnClick:
    false});map.get InfoWindow().ma ximize();


    With a little luck ! ?

    --
    sm

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: This code requires the user 2 click the mouse twice, how do ido it in just one mouse-click?

      Daniish wrote:
      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(m arker.getPoint( ),maxZoom,G_SAT ELLITE_MAP);
      marker.openInfo WindowHtml("<di v id='iw' style='padding: 5px'>" + info +
      "</div>",{maxConte nt: 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.htmlb efore
      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$8 300dec7@news.de mon.co.uk>

      Comment

      Working...