Live data from Hacker News

Building an interactive clickable map for my blog

tomcritchlow.com

1–10 of 20 posts

Re: Building an interactive clickable map for my blog

#2
When I were a nipper, after walking uphill t'mill and uphill back home, after a full 26 hours of work in the evening I'd drag out the cardboard box with the soggy "modem" string and use an image map[1] for that there stuff.

Kids these days with their ess-vee-gee... Dunno they're born.

1: https://www.w3schools.com/html/html_images_imagemap.asp

Re: Building an interactive clickable map for my blog

#3

When I were a nipper, after walking uphill t'mill and uphill back home, after a full 26 hours of work in the evening I'd drag out the cardboard box with the soggy "modem" string and use an image map[1] for that there stuff. Kids these days with their ess-vee-gee... Dunno they're born. 1: https://www.w3schools.com/html/html_images_imagemap.asp

Lol yeah there's lots of ways to do this - and I'm sure I'm breaking a bunch of formal web design rules. But eh, this figma workflow is easy and fun :)

Re: Building an interactive clickable map for my blog

#4
Excellent that the links can be navigated to using the keyboard. But also sad that when the link text breaks over multiple lines the solution creates a link for each line.

Also (I may be wrong): it shouldn't be too hard to make the SVG more scaleable/responsive to get rid of the horizontal scrollbar at various screen widths? And the link text should be amenable to resizing in line with some CSS media query magic?

Re: Building an interactive clickable map for my blog

#5
post #4

Excellent that the links can be navigated to using the keyboard. But also sad that when the link text breaks over multiple lines the solution creates a link for each line. Also (I may be wrong): it shouldn't be too hard to make the SVG more scaleable/responsive to get rid of the horizontal scrollbar at various screen widths? And the link text should be amenable to resizing in line with some CSS media query magic?

Didn't deal with the link text, but yes, making an embedded SVG responsive is fairly straightforward. The author's SVG with quick/dirty responsive treatment:

https://jsfiddle.net/w5n1r96q/ (Click settings, "bottom result" to see it better)

Re: Building an interactive clickable map for my blog

#8
I too put my site's landing nav in an illustration: https://spenc.es

The SVG spec is huge and totally under-appreciated. There is plenty of it too that hasn't been implemented by browser vendors yet, like mesh gradients. There's even an animation language (that doesn't use CSS or JS) called SMIL that I didn't even know existed until about a week ago.

SVG though is super powerful and its full potential has yet to be realized. It is for graphics what HTML is for content, thus making layers, paths, groups, everything scriptable.

Re: Building an interactive clickable map for my blog

#9

I too put my site's landing nav in an illustration: https://spenc.es The SVG spec is huge and totally under-appreciated. There is plenty of it too that hasn't been implemented by browser vendors yet, like mesh gradients. There's even an animation language (that doesn't use CSS or JS) called SMIL that I didn't even know existed until about a week ago. SVG though is super powerful and its full potential has yet to be r…

Last I heard Google wanted to deprecated SMIL but then changed their minds and I've no idea what the latest is
Post reply on HN