Skip to content

Commit

Permalink
Merge pull request #1049 from CodeForPhilly/revert-1008-lebovits/remo…
Browse files Browse the repository at this point in the history
…ve-mapbox-references

Revert "remove references to mapbox key, which we are no longer using"
  • Loading branch information
CodeWritingCow authored Dec 12, 2024
2 parents 93d5a3d + 89108b4 commit 584993a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
image: vacant-lots-proj:latest
environment:
- GOOGLE_APPLICATION_CREDENTIALS=/app/service-account-key.json
- CFP_MAPBOX_TOKEN_UPLOADER
- VACANT_LOTS_DB
- CLEAN_GREEN_GOOGLE_KEY
- PYTHONUNBUFFERED=1
Expand Down
3 changes: 3 additions & 0 deletions data/src/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
USE_CRS = "EPSG:2272"
""" the standard geospatial code for Pennsylvania South (ftUS) """

MAPBOX_TOKEN = os.environ.get("CFP_MAPBOX_TOKEN_UPLOADER")
""" The location of the token for your mapbox account in your environment """

log_level: int = logging.WARN
""" overall log level for the project """

Expand Down
2 changes: 1 addition & 1 deletion data/src/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@

conn.commit()

# Post to GCP
# Post to Mapbox
dataset.build_and_publish(tiles_file_id_prefix)

# if we are reloading, run the diff report, then archive the backup and finally prune old archives
Expand Down
4 changes: 4 additions & 0 deletions src/config/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
const EMPTY_STRING = '';

export const mapboxAccessToken =
'pk.eyJ1IjoibmxlYm92aXRzIiwiYSI6ImNsZXQ2Nzd3ZDBjZnYzcHFvYXhib2RqYzQifQ.PWg2LuNCH1E6-REjmYvdOg' ||
EMPTY_STRING;

export const maptilerApiKey =
process.env.NEXT_PUBLIC_MAPTILER_KEY || EMPTY_STRING;

Expand Down

0 comments on commit 584993a

Please sign in to comment.