]> git.sur5r.net Git - contagged/blob - templates/list_map.tpl
Use leafletjs + OpenStreetMap instead of google maps
[contagged] / templates / list_map.tpl
1 {include file="header.tpl"}
2
3 <div id="mapcontainer">
4 {if $coords|@count}
5     <div id="map"></div>
6     <script type="text/javascript">
7 var coords = {$coords|@json_encode};
8 {literal}
9 $(document).ready(function() {
10     drawMap(coords);
11 });
12 {/literal}
13     </script>
14 {else}
15     <p>No coordinates</p>
16 {/if}
17 </div>
18
19 {include file="footer.tpl"}