Advertisement

06.10.2008 at 10:09AM PDT, ID: 23473111
[x]
Attachment Details

How to i combine these javascript statements to run after a single mouse click, rather than 2 concurrent mouse-clicks?

Asked by Daniish in JavaScript

Tags: , ,

Hello,

At present when you click on a (round) marker on my site, the first click - zooms you in:
map.setCenter(marker.getPoint(),maxZoom,G_SATELLITE_MAP);

.. and then if you click a second time, a window opens:
marker.openInfoWindowHtml("<div style='padding:5px'>Click maximize button for more info about the Google Bar!</div>",{maxContent: html, maxTitle: infotitle, noCloseOnClick: true});

I would like to know how to combine these two so that when a marker is clicked it both zooms in and opens an infowindow. Please can someone show me how this is done?


Many thanksStart Free Trial
[+][-]06.10.2008 at 10:22AM PDT, ID: 21753137

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: Javascript, Firefox 2.0, www.globexposure.net/index.php
Sign Up Now!
Solution Provided By: Iced-evil
Participating Experts: 1
Solution Grade: B
 
 
[+][-]06.10.2008 at 10:43AM PDT, ID: 21753309

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628