When is a New Line Not a New Line?
Apparently when it’s done in HTML. I’ve been trying to cheat and hack together simple layouts by using paragraphs and line breaks to organise graphics and the logic of interpretation seems, well, illogical. It doesn’t really matter though, seeing as I obviously shouldn’t do things in that sort of slap-dash manner.
I’ve changed the way the click-zoom on the map works, but decided against the pixel by pixel method. As soon as I had it running I realised that it was a very bad idea from a performance perspective as a cache hit was much less likely. To explain, the existing code allowed the user to click on a section of the map and that would zoom them to one of a set of zoomed views. This meant that there were a limited number of total possible map images, and that repeat requests didn’t require a new jpg to be generated for viewing. The downside was that the resolution of the selections was very low, meaning that the user didn’t feel fully in control.
I’ve compromised by upping the resolution of the zoom image-map grid, and there are now 16×16 selectable regions at each zoom level. This works nicely apart from a bit of inaccuracy when zoomed a lot that I need to sort out. The layout bits I was trying to hack together were some arrow and zoom icons around the map image. I’ll get those sorted over the next few days and then I can replace the old WIP link with the latest version.

