Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't center on the search page

  • Loading branch information...
commit 81578c68d446cda15769ea755e0efecdb8650182 1 parent a51b0dd
@kennethlove kennethlove authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 dp/generic/templates/generic/search.html
View
17 dp/generic/templates/generic/search.html
@@ -26,3 +26,20 @@
</div>
</div>
{% endblock %}
+
+{% block extra_js %}
+<script src="http://maps.stamen.com/js/tile.stamen.js"></script>
+<script>
+ var map = new L.Map("map", {
+ center: new L.LatLng(21.505, -0.09),
+ zoom: 3
+ });
+
+ var stamenLayer = new L.StamenTileLayer("watercolor", {
+ attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'
+ });
+
+ //map.addLayer(stamenLayer).locateAndSetView(4);
+ map.addLayer(stamenLayer);
+</script>
+{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.