Map Rage

I simply cannot believe how difficult this was to accomplish. I am still no entirely convinced this is a stable solution. It seemed like such a simple, common thing; embedding a google map onto a WordPress blog post. Silly me.

This is the result of three hours of work, and I still don’t have it the way I like. It is not formatting to the height or width I want…

[map lat=”13.5439194″ lng=”144.8842965″ height=’400px’ zoom=15]South Pacific Memorial Park, Yigo[/map]

At least the damn map is displaying at last.

Apparently something in this install of WordPress has disabled short codes, iframes and oembed, or has some sort of grievance with Google Maps. I tried over and over to drop a map into this post and nothing worked. I tried two or three methods mentioned in all the tutorials online in vain, then I went through four plugins to no avail, and finally edited in the functions.php file for this install. All for naught. Frustrating.

Finally got a plugin that seems to work at least. But none of the formatting options are working. Shouldn’t be this hard to embed a damn map.

UPDATE — Aha! The parameters need to be passed as numbers not strings. OR NOT. God this so frustrating. Only the zoom level parameter needs to be passed as an integer. Height and width are still not working. Either the parameter name is wrong (which I strongly suspect) or the format is wrong. I dunno and I don’t care anymore.

Final UPDATE — Okay. So the zoom level is set by an integer with no quotes. Latitude and Longitude are strings wrapped in double quotes, and map height is a string set by single quotes. However… The default map height overrides any customizations I make in the embed code. So I had to go edit the default map height parameter in the plugin settings page. Finally got my map at the height and zoom level I wanted. That only took four hours to figure out. Jesus.

Now, if I could just figure out how to enable satellite view instead of road map view…