Skip to content

Instantly share code, notes, and snippets.

@geohacker
Created January 13, 2012 10:24
Show Gist options
  • Save geohacker/1605424 to your computer and use it in GitHub Desktop.
Save geohacker/1605424 to your computer and use it in GitHub Desktop.
mapquest_layer
var map = new L.Map('map');
var mapquestUrl = 'http://{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png',
subDomains = ['otile1','otile2','otile3','otile4'],
mapquestAttrib = 'Data, imagery and map information provided by <a href="http://open.mapquest.co.uk" target="_blank">MapQuest</a>,
<a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a> and contributors.
var mapquest = new L.TileLayer(mapquestUrl, {maxZoom: 18, attribution: mapquestAttrib, subdomains: subDomains});
@drtortoise
Copy link

I think you're missing a single quote on line 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment