Context Menu and Google Maps

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ecg921@gmail.com
Advanced
Advanced
Posts: 13
Joined: Thu Oct 13, 2005 7:34 pm

Context Menu and Google Maps

Post by ecg921@gmail.com »

I'm using the latest release version of the menu and I don't have anything for anyone to look at since I am developing on my laptop right now but I think this should be something tthat can be answered without having to see it.

I have figured out a way to get the right click menu to show up when right clicking on a Google Map. The only problem is the menu doesn't disappear after the close menu time limit expires. It only disappears when you rollover a menu item then roll off the menu. It works, or should I say disappears, fine on a right click any where outside of the Google Map.

So, is there something I can do to get the menu to disappear like it is suppose to, without having to rollover a menu item, when it is used with Google Maps?

Thanks,

Eric
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

Did you try "closeonclick" ?
Pls see the item properties:
http://milonic.com/itemproperties.php
Allows the menu to be closed by a click of the mouse on the main menu aswell it automatically closing as the mouse rolls off the selected menu.
Values: 'true', 'false', '0' or '1'
Example: closeonclick=1;
Example: closeonclick=true;
Michael
ecg921@gmail.com
Advanced
Advanced
Posts: 13
Joined: Thu Oct 13, 2005 7:34 pm

Post by ecg921@gmail.com »

Thanks for the suggestion but closeonclick still requires the user to either rollover the menu or click on it to get it to close. I want the menu to behave as it does normally and close automatically even if the user does not rollover it.


Eric
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

there are - in general - no reasons, why the menu doesn´t close.
See the Milonic sample pages. there the context menu closes.

There could be a different reason, syntax, order of js files loaded not correct etc. etc.

So, if a url is not provided, help is limited.

Michael
ecg921@gmail.com
Advanced
Advanced
Posts: 13
Joined: Thu Oct 13, 2005 7:34 pm

Post by ecg921@gmail.com »

The menu behaves as it should anywhere else on the page except when called by right clicking on the Google Map.

I haven't changed any of the Milonic code as of yet because I am just trying to see what happens and I placed the Milonic scripts in the same order as in the demo.

Nothing is different from the demo except the placement of a Google Map object on the page.

I apologize for not having something for you to look at but that isn't possible right now and I didn't think it would really be of any benefit since nothing is different except the placement of the Google Map on the page.

Thanks,

Eric
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

Just to butt in here - in order to debug this I would definately need to see a URL as I've no idea how you would go a bout integrate the menu with Google maps,

Sounds like a great idea so if you can provide a URL or some code or at least something that we can work from I'm sure we could find the problem.

Cheers,
Andy
ecg921@gmail.com
Advanced
Advanced
Posts: 13
Joined: Thu Oct 13, 2005 7:34 pm

Post by ecg921@gmail.com »

No worries about "butting" in. All comments are welcomed.

I fixed it where you can click to close the menu - like the way you close the Windows right click menu.

I can't show you anything now as the web page only sits on my laptop. It needs to get further along before I can put it up on the development server. Right now I am in the very early stages. Trying differnt things and figuring out how I can get things to work. I am trying to replace a cumbersome Java Web application that allows you to view, edit and add information related icons on a map for event management at a state DOT.

BTW, I may be using the Milonic tooltip to display the information associated with the icons on the Google Map instead of the Google Map Info Bubble. I have it working already but I'm not sure if it is what I want yet.

Once I have it posted where you can view it, I will let you know.

Thanks,

Eric
Post Reply