Solved

Google Maps to change or highlight pin when mouse over text on page

Posted on 2014-02-13
4
1,967 Views
Last Modified: 2014-02-13
Hello,

I'm looking for a way to highlight a Google map pin when a user hovers over a particular name in a list - so, for example this page has a list of regions (to be tidied up ;-) ):

www.villasdirect.com/top-destinations.asp/?country=France

Thanks in advance!
0
Comment
Question by:Nico2011
  • 2
  • 2
4 Comments
 
LVL 32

Expert Comment

by:Big Monty
Comment Utility
here's a pretty in depth article that covers all of the basics in doing this:

http://econym.org.uk/gmap/index.htm
0
 

Author Comment

by:Nico2011
Comment Utility
Hi - thanks for the link, however I'm actually not sure where to start looking!  It's a great resource to have, but I'm hoping to just find a bit of code to add to my list that'll change the icon when my mouse goes over one of the regions...
0
 
LVL 32

Accepted Solution

by:
Big Monty earned 500 total points
Comment Utility
have a look at the source code on this page:

http://econym.org.uk/gmap/example_hoverchange75.htm

it looks like there is a call to replace the original image with the highlighted one using marker.setImage()
0
 

Author Closing Comment

by:Nico2011
Comment Utility
Yes - that'll get me started - thanks!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now