Stuff that occurs to me

All of my 'how to' posts are tagged here. The most popular posts are about blocking and private accounts on Twitter, also the science communication jobs list. None of the science or medical information I might post to this blog should be taken as medical advice (I'm not medically trained).

Think of this blog as a sort of nursery for my half-baked ideas hence 'stuff that occurs to me'.

Contact: @JoBrodie Email: jo DOT brodie AT gmail DOT com

Science in London: The 2018/19 scientific society talks in London blog post

Tuesday, 30 December 2014

Approximate aspect ratios for Google maps - post largely for me to be honest :)

This is a public memo for me for the next time I need a quick way to work out approximate aspect ratio reductions. Fiddling about with a Google map embed... it comes with defaults of 640 x 480 and no way to change it (other than by manually editing the underlying HTML code) and the preset was a little large for its purpose.

I played around with a calculator so that the larger number is about 1.3333 times the smaller one, maintaining an approx 4:3 aspect ratio.

Here's what I came up with. Might be of use to others hence sticking it here rather than just in a file.

w=640&h=480
w=530&h=400
w=400&h=300
w=320&h=240

Tempting as it is to put a big map on a blog post it rarely works well when viewing on a smartphone. Scrolling down often means you get stuck scrolling within the map, so a bit of thumb-space around the map is helpful.

No comments:

Post a Comment

Comment policy: I enthusiastically welcome corrections and I entertain polite disagreement ;) Because of the nature of this blog it attracts a LOT - 5 a day at the moment - of spam comments (I write about spam practices,misleading marketing and unevidenced quackery) and so I'm more likely to post a pasted version of your comment, removing any hyperlinks.

Comments written in ALL CAPS LOCK will be deleted and I won't publish any pro-homeopathy comments, that ship has sailed I'm afraid (it's nonsense).