Compare commits
2 Commits
4b77949983
...
e3a523d063
Author | SHA1 | Date | |
---|---|---|---|
e3a523d063 | |||
0ff7b4e7db |
1314
css/leaflet.css
1314
css/leaflet.css
File diff suppressed because it is too large
Load Diff
BIN
img/.DS_Store
vendored
Normal file
BIN
img/.DS_Store
vendored
Normal file
Binary file not shown.
@ -62,7 +62,7 @@
|
|||||||
<div id="header">
|
<div id="header">
|
||||||
<img id="logo" src="img/Gilroy Hacks Logo [Summer].png" height="400" width="400" alt="logo"/>
|
<img id="logo" src="img/Gilroy Hacks Logo [Summer].png" height="400" width="400" alt="logo"/>
|
||||||
<hr id="line-header">
|
<hr id="line-header">
|
||||||
<h2 id="header-subtitle-date">Aug 12 - 141</h2>
|
<h2 id="header-subtitle-date">Aug 12 - 14</h2>
|
||||||
<div id="spots-container">
|
<div id="spots-container">
|
||||||
<div class="blob green" aria-hidden="true"></div>
|
<div class="blob green" aria-hidden="true"></div>
|
||||||
<h2 id="header-subtitle-spots">40 spots remaining</h2>
|
<h2 id="header-subtitle-spots">40 spots remaining</h2>
|
||||||
|
46
js/map.js
46
js/map.js
@ -1,24 +1,24 @@
|
|||||||
var map = L.map('map').setView([37.00508, -121.57268], 18);
|
var map = L.map('map').setView([37.00508, -121.57268], 18);
|
||||||
|
|
||||||
var myIcon = L.icon({
|
var myIcon = L.icon({
|
||||||
iconUrl: '/img/leaflet/marker-icon.png'
|
iconUrl: '/img/leaflet/marker-icon.png'
|
||||||
});
|
});
|
||||||
|
|
||||||
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||||
maxZoom: 18,
|
maxZoom: 18,
|
||||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
let marker = L.marker([37.00529, -121.572764], {icon: myIcon}).addTo(map)
|
let marker = L.marker([37.00529, -121.572764], {icon: myIcon}).addTo(map)
|
||||||
|
|
||||||
L.popup().setLatLng([37.00529, -121.572697]).setContent('<h3 style="text-align: center">Gilroy Library</h3><br>350 W 6th St, Gilroy, CA 95020')
|
L.popup().setLatLng([37.00529, -121.572697]).setContent('<h3 style="text-align: center">Gilroy Library</h3><br>350 W 6th St, Gilroy, CA 95020')
|
||||||
.openOn(map);
|
.openOn(map);
|
||||||
|
|
||||||
// var circle = L.circle([37.00508, -121.57268], {
|
// var circle = L.circle([37.00508, -121.57268], {
|
||||||
// color: 'blue',
|
// color: 'blue',
|
||||||
// fillColor: '#6393c4d2',
|
// fillColor: '#6393c4d2',
|
||||||
// fillOpacity: 0.5,
|
// fillOpacity: 0.5,
|
||||||
// radius: 50
|
// radius: 50
|
||||||
// }).addTo(map)
|
// }).addTo(map)
|
||||||
// .bindPopup('<h3 style="text-align: center">Gilroy Library</h3><br>350 W 6th St, Gilroy, CA 95020')
|
// .bindPopup('<h3 style="text-align: center">Gilroy Library</h3><br>350 W 6th St, Gilroy, CA 95020')
|
||||||
// .openPopup();
|
// .openPopup();
|
Loading…
Reference in New Issue
Block a user