I have a leaflet basemap established:
var cloudmadeUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18});
var map1 = new L.Map('map', {layers: [cloudmade], center: new L.LatLng(51.505, -0.04), zoom: 6});
Now I am trying to use HTML to toggle a few Mapbox json layers:
map1 .layers({
1: { api: 'http://a.tiles.mapbox.com/v3/inosys.1cpsycqc.jsonp',
center: { ease: 1000 }
},
2: {
api: 'http://a.tiles.mapbox.com/v3/mapster88.1.jsonp',
center: { ease: 1000 }
},
3: {
api: 'http://a.tiles.mapbox.com/v3/mapster88.2.jsonp',
center: { ease: 1000 }
},
Here is the test map: http://erichsen-group.com/demoland/taylorpeterh/index19.html
How can I configure the map1 .layers to work with the leaflet L.Map?