Skip to content

Commit

Permalink
remove maplibre style url setting
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Oct 27, 2023
1 parent 8e639a7 commit c31f843
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion .env.example

This file was deleted.

3 changes: 0 additions & 3 deletions posthog/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@
# Whether kea should be act in verbose mode
KEA_VERBOSE_LOGGING = get_from_env("KEA_VERBOSE_LOGGING", False, type_cast=str_to_bool)

# MapLibre Style URL to configure map tile source
MAPLIBRE_STYLE_URL = get_from_env("MAPLIBRE_STYLE_URL", optional=True)

# Only written in specific scripts - do not use outside of them.
PERSON_ON_EVENTS_OVERRIDE = get_from_env("PERSON_ON_EVENTS_OVERRIDE", optional=True, type_cast=str_to_bool)

Expand Down
5 changes: 0 additions & 5 deletions posthog/templates/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@
window.SENTRY_ENVIRONMENT = '{{ sentry_environment | escapejs }}';
</script>
{% endif %}
{% if js_maplibre_style_url %}
<script>
window.JS_MAPLIBRE_STYLE_URL = '{{ js_maplibre_style_url | escapejs }}'
</script>
{% endif %}
<script id='posthog-app-user-preload'>
window.POSTHOG_APP_CONTEXT = JSON.parse("{{ posthog_app_context | escapejs }}");
// Inject the expected location of JS bundle, use to allow the location of
Expand Down
3 changes: 0 additions & 3 deletions posthog/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,6 @@ def render_template(
context["js_kea_verbose_logging"] = settings.KEA_VERBOSE_LOGGING
context["js_url"] = get_js_url(request)

if settings.MAPLIBRE_STYLE_URL:
context["js_maplibre_style_url"] = settings.MAPLIBRE_STYLE_URL

posthog_app_context: Dict[str, Any] = {
"persisted_feature_flags": settings.PERSISTED_FEATURE_FLAGS,
"anonymous": not request.user or not request.user.is_authenticated,
Expand Down

0 comments on commit c31f843

Please sign in to comment.