Call the marker.setIcon('newImage.png')
… Look here for the docs.
Are you asking about the actual way to do it? You could just create each div
, and a add a mouseover
and mouseout
listener that would change the icon and back for the markers.
More Related Contents:
- Google Maps JS API v3 – Simple Multiple Marker Example
- Google Maps v3 – limit viewable area and zoom level
- Using Address Instead Of Longitude And Latitude With Google Maps API
- How to Display Multiple Google Maps per page with API V3
- Google Map API v3 — set bounds and center
- Google Map API – multiple icons in wrong spot
- What’s the API Key for in Google Maps API V3?
- Google Maps API autocomplete 2nd address fields on same page
- google maps move marker with lat/lng from ajax success returned data
- Google Maps API V3 : How show the direction from a point A to point B (Blue line)?
- Do I need to hide API key when using google maps js API? If so, how?
- How to set zoom level in google map
- Have just one InfoWindow open in Google Maps API v3
- Google Maps – How to get the distance between two point in metre?
- Load google maps v3 dynamically with ajax
- How to get the formatted address from a dragged marker in Google Version Maps
- How to draw a polygon around a polyline in JavaScript?
- Display world map with no repeats
- Request main road / curbside StreetView panoramas instead of back alleys from API
- Open infoWindows from an external link outside of the google map
- XMLHttpRequest cannot load No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:3000’ Google maps
- Animating Multiple Markers
- Google map custom marker with css rounded corner
- How to detect if a point is in a Circle?
- Google Maps: Auto close open InfoWindows?
- fitbounds() in Google maps api V3 does not fit bounds
- Highlight polygon and tint rest of map using Google Maps [duplicate]
- Custom Google Map API V3 Zoom Buttons
- Google Maps API Multiple Markers with Infowindows
- Google maps API V3 method fitBounds()