Skip to content

Commit

Permalink
Add API Key field
Browse files Browse the repository at this point in the history
  • Loading branch information
devnulling committed May 17, 2016
1 parent 49b7d87 commit 0599c09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/html_template.py
Expand Up @@ -2,7 +2,7 @@
#HTML template for Mode S map display
#Nick Foster, 2013

def html_template(my_position, json_file):
def html_template(my_apikey, my_position, json_file):
if my_position is None:
my_position = [37, -122]

Expand All @@ -25,9 +25,9 @@ def html_template(my_position, json_file):
white-space: nowrap;
}
</style>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false">
<script type="text/javascript" src="http://maps.google.com/maps/api/js?key=%s">
</script>
<script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.9/src/markerwithlabel.js">
<script type="text/javascript" src="https://raw.githubusercontent.com/googlemaps/v3-utility-library/master/markerwithlabel/src/markerwithlabel.js">
</script>
<script type="text/javascript">
var map;
Expand Down Expand Up @@ -152,4 +152,4 @@ def html_template(my_position, json_file):
<div id="map_canvas" style="width:100%%; height:100%%">
</div>
</body>
</html>""" % (my_position[0], my_position[1], json_file)
</html>""" % (my_apikey, my_position[0], my_position[1], json_file)

0 comments on commit 0599c09

Please sign in to comment.