473,473 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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(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
Jun 27 '08 #1
2 1415
SAM
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(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
Jun 27 '08 #2
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(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.htmlbefore
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, <f8*******************@news.demon.co.uk>
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Harris | last post by:
How could you create a program that would run scripts to mimic user input for a program used to automate tasks? I was thinking of just seeing if I could change the like x,y coords of the mouse...
1
by: GeekBoy | last post by:
Howdy... I have a textarea with a paragraph of data already in it. There will be a few unique words in that paragraph which are simply placeholders and need to be replaced with data, just like a...
3
by: news.onetel.net.uk | last post by:
I and my friend Karl have spent literally all day trying to find out what is causing my error but we are zapped of any further functionality :) I have a form that adds news records. You select...
15
by: @sh | last post by:
Trying to do this, but its not working...?! My aim being to change the bgcolor of the cell upon which the user has rolled over, I'll then replicate this as an OnMouseOut to change it back. ...
7
by: Noozer | last post by:
Is it possible to redirect a user to another web page using ASP code located in page body? I have some ASP code that runs after generating some output to the browser. It checks for a condition...
2
by: Guy Lafleur | last post by:
I have a user control that builds a treeview dynamically in the Page_Load event. Also, I have the AutoEventWireup property set to true (i.e., <%@ Control AutoEventWireup="true" %>). Then, when I...
1
by: dkimbrell | last post by:
Hi there, I'm very novice to web design. I'm trying to make a pulldown menu, but the formatting keeps getting screwed up when you roll the mouse over it. Please see www.boundarysys.com for...
1
by: leicklda | last post by:
Hi there, I'm very novice to web design. I'm trying to make a pulldown menu, but the formatting keeps getting screwed up when you roll the mouse over it. Please see www.boundarysys.com for...
3
by: Spam Catcher | last post by:
Hi all, I'm having some trouble with the Mouse Hover/Leave events on a user control. Say I have a user control with a panel covering the whole control. In turn, a label + picture box cover...
3
by: Jon Slaughter | last post by:
What is the general procedure to optimize hit tests on objects with a mouse cursor? Just loop through all the objects and check for intersection and break when found or is there something better? ...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.