1 ## -*- coding: utf-8 -*-
4 ## PoisCasse -- Open Data POIs portal
5 ## By: Emmanuel Raviart <eraviart@easter-eggs.com>
6 ## Romain Soufflet <rsoufflet@easter-eggs.com>
8 ## Copyright (C) 2011 Easter-eggs
9 ## http://gitorious.org/infos-pratiques/poiscasse
11 ## This file is part of PoisCasse.
13 ## PoisCasse is free software; you can redistribute it and/or modify
14 ## it under the terms of the GNU Affero General Public License as
15 ## published by the Free Software Foundation, either version 3 of the
16 ## License, or (at your option) any later version.
18 ## PoisCasse is distributed in the hope that it will be useful,
19 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ## GNU Affero General Public License for more details.
23 ## You should have received a copy of the GNU Affero General Public License
24 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
28 from poiscasse import conf
32 <%inherit file="/index.mako"/>
35 <%def name="css()" filter="trim">
37 <link rel="stylesheet" href="${conf['leaflet.css']}">
39 <link rel="stylesheet" href="${conf['leaflet.ie.css']}">
44 <%def name="results()" filter="trim">
45 <div id="map" style="height: 400px;"></div>
49 <%def name="scripts()" filter="trim">
51 <script src="${conf['leaflet.js']}"></script>
53 <script src="${conf['pie.js']}"></script>
55 <script src="/js/map.js"></script>
57 var etalage = etalage || {};
58 etalage.map.geoJsonUrl = '/api/v1/geojson';
59 etalage.map.markersUrl = ${conf['markers_url'].rstrip('/') | n, js};
60 etalage.map.tileUrlTemplate = ${conf['tile_url_template'] | n, js};
64 etalage.map.createMap('map');