aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2016-01-26 13:51:50 +0000
committerDave Arter <davea@mysociety.org>2016-03-29 17:49:37 +0100
commit822fe33f679d4c84cb7bece3a5243fb91d45e857 (patch)
tree17c456059bbb087135a9adc7f863beb2b3bb6e8c /templates/web
parent58a000d3095f0d3d327365af0f6d7bb4178bb5bb (diff)
[Angus] Add clickable street light layer to report map
Angus provide a WFS endpoint for their existing streetlight assets and known faults. This commit: - Displays clickable markers when the 'street lighting' category is selected on the report a problem page. - Displays known faults on the map - Includes a custom OpenLayers build for the Angus cobrand that includes WFS support The custom code for adding the layers to the map is within position_map.js, as this seemed to be currently the best place for cobrand-specific map logic.
Diffstat (limited to 'templates/web')
-rw-r--r--templates/web/angus/maps/fms.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/web/angus/maps/fms.html b/templates/web/angus/maps/fms.html
new file mode 100644
index 000000000..d76d9329d
--- /dev/null
+++ b/templates/web/angus/maps/fms.html
@@ -0,0 +1,13 @@
+[% map_js = BLOCK %]
+<!-- <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&mkt=en-GB"></script> -->
+<script type="text/javascript" src="[% version('/js/OpenLayers.angus.js') %]"></script>
+<script type="text/javascript" src="[% version('/js/map-OpenLayers.js') %]"></script>
+<script type="text/javascript" src="[% version('/js/map-bing-ol.js') %]"></script>
+<script type="text/javascript" src="[% version('/js/map-fms.js') %]"></script>
+<script type="text/javascript" src="[% version('/js/jquery.ba-hashchange.min.js') %]"></script>
+<!--[if lte IE 6]>
+ <link rel="stylesheet" href="/js/OpenLayers-2.13.1/theme/default/ie6-style.css" type="text/css">
+<![endif]-->
+[% END %]
+
+[% map_html = INCLUDE maps/openlayers.html include_key = 1 %]