Hide the annoying bubble on google maps

Posted on

Sometimes you want to embed a google map but have it sized small. By default, it still has the big dumb location bubble that pops up, but because the map is small, it is cut off. It looks dumb.

Well here’s how to get rid of it so that you just have the red pin. In the map embed code, look near the end of the src of the iframe, it says “iwloc=A” — this is the culprit. Change the A to say ‘near’ so that it now says “iwloc=near
In context, it looks like this

<iframe src="...blahblahblahcode...0.02326&amp;z=14&amp;iwloc=near&amp;output=embed"></iframe>

This will just show the little pin on the location but remove the big dumb bubble.

Posted in Wordpress Tips, Tricks and Reusable Bits of Code.