Using this example along with several others it's pretty easy to figure out how to put markers on maps in different situations whether from a search or from my own data. However, when I use the google examples I sometimes see places on the map that I didn't add. For example, a search for an exact address will put a marker there, but often also shows small icons for various local businesses. Clicking on these opens that business's details in a popup and gives the user a chance to see more about the place.
My question has several parts.
- Is it possible to get capture the click event for those icons so I can show my own popup instead?
- If not, is it possible to tell the map to not show any markers or icons that I didn't place?
**Edit: ** This is not a duplicate of the listed question. That deals with markers, but these are not markers. See the comments for a link to the question that this is really a duplicate of.