Skip to content

Commit

Permalink
Merge branch 'E1-Add-geojson-data' into E5-3D-terrain
Browse files Browse the repository at this point in the history
  • Loading branch information
petr-hajek committed Sep 19, 2024
2 parents 639d8f6 + 7825a34 commit f9c1a8d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build
env:
VITE_MAPTILER_API_KEY: ${{ secrets.MAPTILER_API_KEY }}
run: npm run build

- name: Deploy
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
node_modules/
.env.local
2 changes: 1 addition & 1 deletion src/components/Map/map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Main = styled("main", { shouldForwardProp: (prop) => prop !== "open" })(
export default function Map() {
const mapContainer = useRef(null);
const map = useRef(null);
const geodata = configData.MAPTILER_DATSET_ID;
const geodata = configData.MAPTILER_DATASET_ID;
const center = { lng: -157.9253, lat: 21.4732 };
const zoom = 9.79; // 9.79/21.4732/-157.9253
maptilersdk.config.apiKey = configData.MAPTILER_API_KEY;
Expand Down
8 changes: 4 additions & 4 deletions src/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
// Replace with YOUR_MAPTILER_API_KEY - this key is restricted to MapTiler Documentation pages.
MAPTILER_API_KEY: "qC6zBtR7VUaKtyyiLcJq",
// Replace with YOUR_DATSET_ID
MAPTILER_DATSET_ID: "57ce7daa-ea5b-4cd6-8975-32c41f5c5d90",
// Replace with YOUR MAPTILER API KEY
MAPTILER_API_KEY: import.meta.env.VITE_MAPTILER_API_KEY,
// Replace with YOUR DATASET ID
MAPTILER_DATASET_ID: "57ce7daa-ea5b-4cd6-8975-32c41f5c5d90",
};

0 comments on commit f9c1a8d

Please sign in to comment.