Save Money at Gas Pump

Hey bargain hunters! Here's a zoomable map pinpointing gas stations and their prices around Danville, PA. Numbers are current as of Thursday, Nov. 13, 2014. Source: www.pennsylvaniagasprices.com.

This is a mobile-friendly version of an earlier map that I had made with D3.js. The map re-centers itself according to your screen size, so you can look up gas prices on the go. (But please don't do it while you're driving!) 

Map Gets Too Big? Use CSS.

When I tested the map on Internet Explorer 11, it appeared outside the SVG container. The problem got worst when I zoomed in. The map grew so big, it swallowed up the whole webpage.

A simple snippet of CSS solved the problem. From www.stackoverflow.com:

svg { overflow: hidden; }

See more JavaScript magic or return to Gary's blog.