Team:St Andrews/Team2
From 2012.igem.org
(Difference between revisions)
Line 76: | Line 76: | ||
<script> | <script> | ||
var layer = new L.StamenTileLayer("toner"); | var layer = new L.StamenTileLayer("toner"); | ||
- | |||
var map = new L.Map('map'); | var map = new L.Map('map'); | ||
- | |||
var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png', | var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png', | ||
Line 91: | Line 89: | ||
map.addLayer(marker); | map.addLayer(marker); | ||
+ | map.addLayer(layer); | ||
+ | |||
marker.bindPopup("<b>Hello world!</b><br />I am a popup.").openPopup(); | marker.bindPopup("<b>Hello world!</b><br />I am a popup.").openPopup(); | ||
Revision as of 12:38, 7 June 2012