-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from hotosm/feature/custom-tiles
Feature : Vector tile support for custom exports
- Loading branch information
Showing
5 changed files
with
1,373 additions
and
1,364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,13 @@ | |
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
# Standard library imports | ||
# Humanitarian OpenStreetmap Team | ||
# 1100 13th Street NW Suite 800 Washington, D.C. 20005 | ||
# <[email protected]> | ||
import time | ||
|
||
# Third party imports | ||
import psycopg2 | ||
from fastapi import FastAPI | ||
from fastapi.middleware.cors import CORSMiddleware | ||
|
@@ -26,6 +28,7 @@ | |
from slowapi import _rate_limit_exceeded_handler | ||
from slowapi.errors import RateLimitExceeded | ||
|
||
# Reader imports | ||
from src.config import ( | ||
ENABLE_CUSTOM_EXPORTS, | ||
ENABLE_HDX_EXPORTS, | ||
|
@@ -57,6 +60,7 @@ | |
from .hdx import router as hdx_router | ||
|
||
if SENTRY_DSN: | ||
# Third party imports | ||
import sentry_sdk | ||
|
||
# only use sentry if it is specified in config blocks | ||
|
@@ -71,6 +75,7 @@ | |
|
||
if LOG_LEVEL.lower() == "debug": | ||
# This is used for local setup for auth login | ||
# Standard library imports | ||
import os | ||
|
||
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.