aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/maps/tilma/openlayers.html
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-10 14:56:00 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-10 14:56:00 +0100
commit391ca1c469d93bb2c4798cc15e56fc495b5e80dd (patch)
tree6bc90fae589de824095e668fbf510ef259935729 /templates/web/default/maps/tilma/openlayers.html
parent7c96f8ec61d6eddc211f3f0e71cdb276c6a5f773 (diff)
parent860383f0de3287b0666d64a3ffff3db3a0f087ae (diff)
Merge branch 'migrate_to_catalyst' into reportemptyhomes
Diffstat (limited to 'templates/web/default/maps/tilma/openlayers.html')
-rw-r--r--templates/web/default/maps/tilma/openlayers.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/web/default/maps/tilma/openlayers.html b/templates/web/default/maps/tilma/openlayers.html
new file mode 100644
index 000000000..c8ae53bfe
--- /dev/null
+++ b/templates/web/default/maps/tilma/openlayers.html
@@ -0,0 +1,26 @@
+[% map_js = BLOCK %]
+<script type="text/javascript" src="/jslib/OpenLayers-2.10/OpenLayers.js"></script>
+<script type="text/javascript" src="/js/map-OpenLayers.js"></script>
+<script type="text/javascript" src="/js/map-tilma-ol.js"></script>
+<script type="text/javascript" src="/js/OpenLayers.Projection.OrdnanceSurvey.js"></script>
+[% END %]
+
+[% map_html = BLOCK %]
+<script type="text/javascript">
+var fixmystreet = {
+ 'tilewidth': [% map.tilewidth %],
+ 'tileheight': [% map.tilewidth %],
+ 'latitude': [% map.latitude %],
+ 'longitude': [% map.longitude %],
+ 'pins': [% INCLUDE maps/pins_js.html %],
+ 'tile_type': '[% map.tile_type %]',
+ 'maxResolution': [% map.maxResolution %]
+};
+</script>
+<div id="map_box">
+ [% pre_map %]
+ <div id="map">
+ [% '<div id="watermark"></div>' IF map.watermark %]
+ </div>
+ <p id="copyright">[% map.copyright %]</p>
+[% END %]