aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/maps/tilma/openlayers.html
diff options
context:
space:
mode:
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 %]