Skip to content

Commit c94b5df

Browse files
committed
Made loading of deck.gl conditional on kml layer as this was added at the time of adding KML layer functionality
1 parent ab83774 commit c94b5df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flask_googlemaps/templates/googlemaps/gmapjs.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
{% endif %}
1414

1515

16-
<script src="https://unpkg.com/deck.gl@^7.0.0/dist.min.js"></script>
16+
{% if gmap.layer %}
17+
<script src="https://unpkg.com/deck.gl@^7.0.0/dist.min.js"></script>
18+
{% endif %}
1719

1820
<style type="text/css">
1921
#{{gmap.identifier}} { {{gmap.style}} }

0 commit comments

Comments
 (0)