Select to view content in your preferred language

Retain InfoWindow while mouse over

2931
3
01-28-2013 03:21 PM
ChrisCarpenter1
New Contributor
I have a setup very similar to this example. However, I would like the info window to remain visible if the user mouses over it. The reason being I have several links in the InfoWindow that I would like to be able to click, but the window hides before I can click them.

I experimented putting a timeout on the hide function, but that only made the infowindow disappear at random intervals. Also, I have experimented hacking it with a number of boolean variables and event handlers, but haven't had much success.

Is their an easy way to do this, or should I rethink my approach as a whole?

What I have so far: uberchris.com/gigslide
Tags (2)
0 Kudos
3 Replies
RhettZufelt
MVP Notable Contributor
Well, without security access to your data/config, it's hard to see what "you have so far".

I don't have any way to test, but what happens if you comment out the myMap.infoWindow.hide(); on onMouseOutHandler ?

R_
0 Kudos
ChrisCarpenter1
New Contributor
Well, without security access to your data/config, it's hard to see what "you have so far".

I don't have any way to test, but what happens if you comment out the myMap.infoWindow.hide(); on onMouseOutHandler ?

R_

I enabled view source, should be a little better.

When I disable hide, the window stays, but it covers up other graphics. That would be a great solution if I could get it to update when the user mouses over a graphic under the infowindow.
0 Kudos
RhettZufelt
MVP Notable Contributor
think it's your crossdomain file or lack of that is keeping me from seeing your data.

Looked into it a little anyway, don't know that you are going to get around the infowindow being on top of other features.  It can be dragged out of the way, and can set myMap.infoWindow.closeButtonVisible = true and you can close it when needed.

This is type of situation that I would use a popup.  I like control of "when" my info shows.

R_
0 Kudos