What web designer/developer hasn’t had to embed a Google map at some point? If you’ve noticed, like I have, that recently it’s become impossible with Google’s generated embed code to keep the huge white “speech bubble” of location information from appearing (and always being cut off at the top) on your map, here’s an easy (if slightly tedious) solution, courtesy of Harry Bailey:
To remove the pin, you can now add
&iwloc=near
to the end of theiframe src
attribute.
In the process of working out this issue I resolved another on my own. If you want to change the default zoom of the map, look for the &spn
query string variable in the Google Maps URL. In my particular instance, it was zoomed in way too tight, with a value something like this: &spn=0.0006125,0.0006125
. The exact value you’ll want to use will probably vary, so experiment, but I was able to get good results with: &spn=0.04,0.04
(And as a final aside… I hate how query strings now have to have &
as the delimiter instead of just &
, for reasons I don’t even totally understand — something to do with XML, I guess — but that I feel underscore the fundamental flaw of ampersand codes in general. A much less commonly-used character should have been chosen if we needed one for embedding extended characters. And now with the proliferation of UTF-8, we shouldn’t really need ampersand entities at all!)