|
1 |
| -<!DOCTYPE html> |
2 |
| -<head> |
3 |
| - <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
4 |
| - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" /> |
5 |
| - <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script> |
6 |
| - |
7 |
| - <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> |
8 |
| - |
9 |
| - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> |
10 |
| - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> |
11 |
| - <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> |
12 |
| - |
13 |
| - <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> |
14 |
| - |
15 |
| - <link rel="stylesheet" href="https://rawgit.com/lvoogdt/Leaflet.awesome-markers/2.0/develop/dist/leaflet.awesome-markers.css"> |
16 |
| - <script src="https://rawi.8713187.xyz/lvoogdt/Leaflet.awesome-markers/2.0/develop/dist/leaflet.awesome-markers.js"></script> |
17 |
| - |
| 1 | +{% extends "base.html" %} |
| 2 | +{% block head %} |
| 3 | + {{ super() }} |
18 | 4 |
|
| 5 | + <!-- Marker Clusters --> |
19 | 6 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.Default.css">
|
20 | 7 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.css">
|
21 | 8 | <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster-src.js"></script>
|
22 | 9 | <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster.js"></script>
|
23 | 10 |
|
| 11 | + <!-- Awesome markers, needs cleanup --> |
| 12 | + <link rel="stylesheet" href="https://rawgit.com/lvoogdt/Leaflet.awesome-markers/2.0/develop/dist/leaflet.awesome-markers.css"> |
| 13 | + <script src="https://rawi.8713187.xyz/lvoogdt/Leaflet.awesome-markers/2.0/develop/dist/leaflet.awesome-markers.js"></script> |
| 14 | + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> |
| 15 | + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> |
| 16 | + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> |
| 17 | + <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> |
24 | 18 | <link rel="stylesheet" href="https://birdage.github.io/Leaflet.awesome-markers/dist/leaflet.awesome.rotate.css">
|
25 | 19 |
|
26 |
| - {{ dvf_js }} |
27 |
| - {{ d3 }} |
28 |
| - {{ vega }} |
29 |
| - {{ jquery }} |
30 |
| - |
31 |
| - <style> |
32 |
| - |
33 |
| - html, body { |
34 |
| - width: 100%; |
35 |
| - height: 100%; |
36 |
| - margin: 0; |
37 |
| - padding: 0; |
38 |
| - } |
39 |
| - |
40 |
| - #map { |
41 |
| - position:absolute; |
42 |
| - top:0; |
43 |
| - bottom:0; |
44 |
| - right:0; |
45 |
| - left:0; |
46 |
| - } |
47 |
| - |
48 |
| - </style> |
49 |
| -</head> |
50 |
| - |
51 |
| -<body> |
52 |
| - |
53 |
| - <div class="folium-map" id="{{ map_id }}" {{ size }}></div> |
54 |
| - |
55 |
| - <script> |
56 |
| - |
57 |
| - {{ vega_parse }} |
58 |
| - |
59 |
| - var base_tile = L.tileLayer('{{ Tiles }}', { |
60 |
| - maxZoom: {{ max_zoom }}, |
61 |
| - minZoom: {{ min_zoom }}, |
62 |
| - attribution: '{{ attr }}' |
63 |
| - }); |
64 |
| - |
65 |
| - var baseLayer = { |
66 |
| - "Base Layer": base_tile |
67 |
| - }; |
68 |
| - |
69 |
| - /* |
70 |
| - addition of the wms layers |
71 |
| - */ |
72 |
| - |
73 |
| - {% for wms in wms_layers %} |
74 |
| - {{ wms }} |
75 |
| - {% endfor %} |
76 |
| - |
77 |
| - /* |
78 |
| - addition of the tile layers |
79 |
| - */ |
80 |
| - {% for tile in tile_layers %} |
81 |
| - {{ tile }} |
82 |
| - {% endfor %} |
83 |
| - |
84 |
| - /* |
85 |
| - list of layers to be added |
86 |
| - */ |
87 |
| - var layer_list = { |
88 |
| - {% for data_string in data_layers %} |
89 |
| - {{ data_string }} |
90 |
| - {% endfor %} |
91 |
| - }; |
92 |
| - |
93 |
| - /* |
94 |
| - Bounding box. |
95 |
| - */ |
96 |
| - var southWest = L.latLng({{ min_lat }}, {{ min_lon }}), |
97 |
| - northEast = L.latLng({{ max_lat }}, {{ max_lon }}), |
98 |
| - bounds = L.latLngBounds(southWest, northEast); |
99 |
| - |
100 |
| - /* |
101 |
| - Creates the map and adds the selected layers |
102 |
| - */ |
103 |
| - var map = L.map('{{ map_id }}', { |
104 |
| - center:[{{ lat }}, {{ lon }}], |
105 |
| - zoom: {{ zoom_level }}, |
106 |
| - maxBounds: bounds, |
107 |
| - layers: [base_tile] |
108 |
| - }); |
109 |
| - |
110 |
| - L.control.layers(baseLayer, layer_list).addTo(map); |
111 |
| - |
112 |
| - //cluster group |
113 |
| - var clusteredmarkers = L.markerClusterGroup(); |
114 |
| - //section for adding clustered markers |
115 |
| - {% for icon, mark, popup, add_mark in cluster_markers %} |
116 |
| - {{ icon }} |
117 |
| - {{ mark }} |
118 |
| - {{ popup }} |
119 |
| - {{ add_mark }} |
120 |
| - {% endfor %} |
121 |
| - //add the clustered markers to the group anyway |
122 |
| - map.addLayer(clusteredmarkers); |
123 |
| - |
124 |
| - {% for icon, mark, popup, add_mark in custom_markers %} |
125 |
| - {{ icon }} |
126 |
| - {{ mark }} |
127 |
| - {{ popup }} |
128 |
| - {{ add_mark }} |
129 |
| - {% endfor %} |
130 |
| - |
131 |
| - {% for mark, popup, add_mark in markers %} |
132 |
| - {{ mark }} |
133 |
| - {{ popup }} |
134 |
| - {{ add_mark }} |
135 |
| - {% endfor %} |
136 |
| - |
137 |
| - {% for line, popup, add_line in lines %} |
138 |
| - {{ line }} |
139 |
| - {{ popup }} |
140 |
| - {{ add_line }} |
141 |
| - {% endfor %} |
142 |
| - |
143 |
| - {% for multiline, add_multiline in multilines %} |
144 |
| - {{ multiline }} |
145 |
| - {{ add_multiline }} |
146 |
| - {% endfor %} |
147 |
| - |
148 |
| - {{ lat_lng_pop }} |
149 |
| - |
150 |
| - {{ click_pop }} |
151 |
| - |
152 |
| -{% if fit_bounds %}{{ fit_bounds }}{% endif %} |
153 |
| - |
154 |
| - </script> |
155 |
| - |
156 |
| -</body> |
| 20 | +{% endblock %} |
0 commit comments