Poprawka w url, pierwsza wersja boxa z listą miejscowości
This commit is contained in:
@@ -3,13 +3,15 @@ import DefaultLayout from "../../layouts/DefaultLayout.astro";
|
||||
import MapGoogle from "../../components/maps/MapGoogle.astro";
|
||||
import MapRangeSwitch from "../../islands/MapRangeSwitch.jsx";
|
||||
import RangeForm from "../../islands/RangeForm.jsx";
|
||||
import CitiesList from "../../components/maps/CitiesList.astro";
|
||||
|
||||
import "../../styles/map-google.css";
|
||||
|
||||
const apiKey = import.meta.env.PUBLIC_GOOGLE_MAPS_KEY;
|
||||
const lat = 52.597388;
|
||||
const lon = 21.456797;
|
||||
const mapStyleId = "8e0a97af9476f2d3";
|
||||
const res = await fetch(Astro.url.origin + "/api/all-cities");
|
||||
const res = await fetch(new URL("/api/all-cities", Astro.url));
|
||||
const cities = await res.json();
|
||||
---
|
||||
|
||||
@@ -59,6 +61,7 @@ const cities = await res.json();
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- <CitiesList cities={cities} /> -->
|
||||
<!-- ===================================================== -->
|
||||
<!-- WARSTWY KML -->
|
||||
<!-- ===================================================== -->
|
||||
|
||||
Reference in New Issue
Block a user