Created
January 13, 2012 10:24
-
-
Save geohacker/1605424 to your computer and use it in GitHub Desktop.
mapquest_layer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you're missing a single quote on line 5