add a link to open stops in new tab
This commit is contained in:
parent
d98fd325df
commit
0f5f878485
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
|||
let map=L.map("map",{center:[38.22,-85.7],zoom:12,layers:[L.tileLayer("https://tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey=cf957cde4a7b40bbb49479c8fa4d60f7")]});
|
||||
let stops={{stops|safe}};
|
||||
for (stop in stops){
|
||||
L.circle(stops[stop][0]).bindPopup(`${stops[stop][1]} (#${stop})<iframe src="${stop}"></iframe>`).addTo(map)
|
||||
L.circle(stops[stop][0]).bindPopup(`${stops[stop][1]} (<a href=${stop}>#${stop}</a>)<iframe src="${stop}"></iframe>`).addTo(map)
|
||||
}
|
||||
let busIcon=L.icon({iconUrl:'static/bus.ico',iconSize:[32,32]})
|
||||
let layerControl=L.control.layers().addTo(map);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue