Compare commits

...

3 commits

2 changed files with 9 additions and 5 deletions

View file

@ -75,7 +75,7 @@
// maxZoom: 19, // maxZoom: 19,
// attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' // attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
// }).addTo(map); // }).addTo(map);
L.tileLayer('./satellite/{z}/{x}/{y}.png', { L.tileLayer('./satellite/{z}/{x}/{y}.jpg', {
minNativeZoom: 12, minNativeZoom: 12,
maxNativeZoom: 20, maxNativeZoom: 20,
bounds: [ bounds: [
@ -96,8 +96,6 @@
const plats = await plats_req.json(); const plats = await plats_req.json();
const data = await data_req.json(); const data = await data_req.json();
L.geoJSON(track).addTo(map);
L.geoJSON(plats, { L.geoJSON(plats, {
filter: feature => !feature.properties.TAO_NAME.toLowerCase().includes("lawrence deer club"), filter: feature => !feature.properties.TAO_NAME.toLowerCase().includes("lawrence deer club"),
onEachFeature: function(feature, layer) { onEachFeature: function(feature, layer) {
@ -117,6 +115,12 @@
}, },
}).addTo(map); }).addTo(map);
L.geoJSON(track, {
style: {
color: "maroon",
},
}).addTo(map);
for (let stand of data.stands) { for (let stand of data.stands) {
if (stand.location) { if (stand.location) {
const marker = L.marker(stand.location).addTo(map); const marker = L.marker(stand.location).addTo(map);

View file

@ -24,8 +24,8 @@ def download_all():
def download_image(z, x, y, total, current): def download_image(z, x, y, total, current):
progress = f"[{current:0{len(str(total))}d}/{total}]" progress = f"[{current:0{len(str(total))}d}/{total}]"
url = f"https://svc.pictometry.com/Image/D2B06344-7A2D-5BD0-FC89-DFDDC9888C41/wmts/PICT-MNITAS23-EDVs7UTOVt/default/GoogleMapsCompatible/{z}/{x}/{y}.png" url = f"https://svc.pictometry.com/Image/D2B06344-7A2D-5BD0-FC89-DFDDC9888C41/wmts/PICT-MNITAS23-EDVs7UTOVt/default/GoogleMapsCompatible/{z}/{x}/{y}.jpg"
file = os.path.normpath(os.path.join(os.path.dirname(__file__), f"../satellite/{z}/{x}/{y}.png")) file = os.path.normpath(os.path.join(os.path.dirname(__file__), f"../satellite/{z}/{x}/{y}.jpg"))
os.makedirs(os.path.dirname(file), exist_ok=True) os.makedirs(os.path.dirname(file), exist_ok=True)
if os.path.isfile(file): if os.path.isfile(file):
try: # does it already exist and look good? try: # does it already exist and look good?