Skip to content

Commit

Permalink
Load static maps from api.maptiler.com
Browse files Browse the repository at this point in the history
  • Loading branch information
petrsloup committed Jun 26, 2019
1 parent 9b79e23 commit 7424abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def area_to_url(area):

def get_static_map_url(center, g_coords):
if center != "" and g_coords != "":
url_static = "https://maps.tilehosting.com/styles/streets/static/auto/[email protected]?key=qrAJy6x3Ck8n4XFFH4PS&latlng=1&fill=rgba(255,0,0,0.15)&stroke=red&width=2&path=" + g_coords
url_static = "https://api.maptiler.com/maps/streets/static/auto/[email protected]?key=qrAJy6x3Ck8n4XFFH4PS&latlng=1&fill=rgba(255,0,0,0.15)&stroke=red&width=2&path=" + g_coords
# + "&markers=" +str(center[0])+","+str(center[1])

return urllib2.quote(url_static), url_static
Expand Down

0 comments on commit 7424abd

Please sign in to comment.