Tech tip: MapQuest JavaScript API not loading tile images

23 July, 2014 · less than a minute to read

While using MapQuest's Javascript API with OpenStreetMap to create a mashup that displays contractors on an interactive map the map suddenly stopped rendering tile images. Instead the MapQuestion cogs background was shown.

The Solution

After doing some research we discovered Twitter Bootstrap contained CSS that makes every image tag have a maximum width of 100%.

Removing this CSS rule for images within the MapQuest map containing div resolved the problem.

#map img { max-width: none }