Skip to content

Commit

Permalink
Update Mapbox JS and CSS from 1.6.0 to 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
philgyford committed Jan 20, 2020
1 parent 0f736ff commit 0257724
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spectator/events/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ class Media:

elif app_settings.MAPS["library"] == "mapbox":
library_css = (
"https://api.tiles.mapbox.com/mapbox-gl-js/v1.6.0/mapbox-gl.css",
"https://api.tiles.mapbox.com/mapbox-gl-js/v1.6.1/mapbox-gl.css",
)
library_js = (
"https://api.tiles.mapbox.com/mapbox-gl-js/v1.6.0/mapbox-gl.js",
"https://api.tiles.mapbox.com/mapbox-gl-js/v1.6.1/mapbox-gl.js",
"js/admin/location_picker_mapbox.js",
)

Expand Down
4 changes: 2 additions & 2 deletions spectator/events/templates/spectator_events/venue_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% block head_extra %}
{% if SPECTATOR_MAPS and SPECTATOR_MAPS.enable %}
{% if SPECTATOR_MAPS.library == "mapbox" %}
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v1.6.0/mapbox-gl.css' rel='stylesheet' />
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v1.6.1/mapbox-gl.css' rel='stylesheet' />
<style>
.spectator-marker {
background-image: url("{% static "img/map-marker.png" %}");
Expand Down Expand Up @@ -101,7 +101,7 @@ <h2>{{ page_obj.paginator.count }} event{{ page_obj.paginator.count|pluralize }}
{% else %}

{% if SPECTATOR_MAPS.library == "mapbox" %}
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v1.6.0/mapbox-gl.js'></script>
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v1.6.1/mapbox-gl.js'></script>
<script>
mapboxgl.accessToken = "{{ SPECTATOR_MAPS.api_key|escapejs }}";
</script>
Expand Down

0 comments on commit 0257724

Please sign in to comment.