I’m using Google maps api v3. In the middle of the map there is a (custom) flag marker with large transparent areas around the flag body. Under the flag icon there are another markers that are inaccessible because of dead transparent areas. Is there any way to set flag marker to be click-through? I cant find solution.
Share
Yes, it is possible the
Markerclass has a shape property that takes a MarkerShape object. This describes the clickable region for theMarker.Here is Google’s Example. They have a custom flag image and adjusted the shape so that only the rectangular flag section is clickable. With the
MarkerShapeobject you can draw a Circle, Retangle, or Polygon shape area.Google example code segment: