Hi all,

An interesting feature would be to highlight marker with circle around it on mouse rollover event.
Here is an exemple:
http://gmaps-samples.googlecode.com/svn/trunk/highlightmarker.html

CommentFileSizeAuthor
#1 gmap_568976-1.patch4.48 KBsrobert72

Comments

srobert72’s picture

Status: Active » Needs review
StatusFileSize
new4.48 KB

Here is patch to enable highlighting.
Enable it with checkbox in admin/settings/gmap page.

srobert72’s picture

I've posted another patch to center on node passed in argument Views.
See #13 in #334846: Center Gmap on Node passed as argument in view

It would be great to also be able to highlight such a node (with different color).
I don't really know how to merge these 2 features.
Maybe someone could help.

izmeez’s picture

subscribing

srobert72’s picture

@izmeez
Could you please test this patch on your installation ?

izmeez’s picture

Status: Needs review » Reviewed & tested by the community

@srobert72
As you requested I have gone ahead and tried this on my test setup.

Unfortunately, I had to do the patch manually but it works just fine.
I had to check the gmap setting for highlight marker and it works as expected.

I didn't think I would need this feature right away but now I see it in action i see much use for it.

I'm using Drupal 6.14 with distinct patch for mysql
Gmap 6.x-1.x-dev dated 2009-12-12

I've changed the status of this issue. Thanks again for your efforts,

Izzy

gkapoor’s picture

subscribing

izmeez’s picture

Just a brief note. I am not sure if this is the desired behaviour or not but I noticed that the highlight marker remains visible even after the mouse is moved off the marker and remains until the mouse is moved to hover over another marker. Also if the mouse is moved off the marker and zoom is used to zoom in on the map the highlight marker appears relatively large until the mouse hovers over the marker again at which time a new highlight marker is drawn of appropriate size. This leaves me wondering if the highlight marker should only remain visible while the mouse is hovering over the marker and turn off when the mouse is moved away. I wonder what others think. Thanks,

Izzy

srobert72’s picture

Patch from #1 has been reposted in new issue in all-in-one patch.
It is now compatible with last DEV version 6.x-1.x-dev (2009-Dec-16)
See #679804: Patch for 4 new features in GMap

izmeez’s picture

Further to my question in #7, in the new patch does the highlight marker turn off when the mouse is moved away from the marker in the same way that the hover tips do? I think it would be an improvement. Thanks,

Izzy

rooby’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Marking as duplicate of #679804: Patch for 4 new features in GMap

Re: izmeez
I have changed it so that the highlight disappears on mouseout as I think that would be expected behaviour.