diff --git a/python/cac_tripplanner/templates/admin/cac-geocoding-map.html b/python/cac_tripplanner/templates/admin/cac-geocoding-map.html index 07516891f..41c42a733 100644 --- a/python/cac_tripplanner/templates/admin/cac-geocoding-map.html +++ b/python/cac_tripplanner/templates/admin/cac-geocoding-map.html @@ -1,4 +1,4 @@ -{% extends 'gis/admin/osm.html' %} +{% extends "gis/admin/openlayers.html" %} {% block openlayers %} {% include 'admin/cac-geocoding-map.js' %} diff --git a/python/cac_tripplanner/templates/admin/cac-geocoding-map.js b/python/cac_tripplanner/templates/admin/cac-geocoding-map.js index 0123f8916..314531535 100644 --- a/python/cac_tripplanner/templates/admin/cac-geocoding-map.js +++ b/python/cac_tripplanner/templates/admin/cac-geocoding-map.js @@ -1,4 +1,12 @@ -{% extends 'gis/admin/osm.js' %} +{% extends "gis/admin/openlayers.js" %} +{% block base_layer %} +// explicitly load via SSL to deal with redirect to HTTPS +new OpenLayers.Layer.OSM("OpenStreetMap", [ + 'https://a.tile.openstreetmap.org/${z}/${x}/${y}.png', + 'https://b.tile.openstreetmap.org/${z}/${x}/${y}.png', + 'https://c.tile.openstreetmap.org/${z}/${x}/${y}.png' +]); +{% endblock %} {% block extra_layers %}