50 lines
1.5 KiB
HTML
Executable File
50 lines
1.5 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<!-- Page: map view -->
|
|
<html lang="fr">
|
|
|
|
<?php include('blocks/d.head.html'); ?>
|
|
|
|
<body>
|
|
|
|
<?php include('blocks/d.nav.html'); ?>
|
|
|
|
<!-- Map -->
|
|
<div id="mapid" style="height: 100%;"></div>
|
|
|
|
<!-- Credits panel -->
|
|
<div id="footer-credits" style="display: none;">
|
|
<i class="fa fa-times close-link" aria-hidden="true"></i>
|
|
<p><i id="map-credits"></i></p>
|
|
</div>
|
|
|
|
<!-- Legend panel -->
|
|
<div id="footer-legend" style="display: none;">
|
|
<i class="fa fa-times close-link" aria-hidden="true"></i>
|
|
<?php foreach($poi_types as $type) { ?>
|
|
<span class="legend_item"><img src="<?=$config['views_url']?>img/<?=$type[3]?>.svg" class="poi_icon"> <?=$type[1]?></span>
|
|
<?php } ?>
|
|
</div>
|
|
|
|
<?php include('blocks/d.footer.html'); ?>
|
|
|
|
<!-- Map configuration -->
|
|
<script>
|
|
var root = "<?=$config['rel_root_folder']?>";
|
|
|
|
// POI icons
|
|
window.poi_style_map = {
|
|
<?php foreach($poi_types as $k => $t) {
|
|
$color = isset($t[2]) ? $t[2] : '#ef2929';
|
|
$size = isset($t[6]) ? (int)$t[6] : 16;
|
|
$shape = isset($t[7]) ? $t[7] : 'square';
|
|
$icon = isset($t[3]) ? $config['views_url']."img/".$t[3].".svg" : $config['views_url']."img/default.svg";
|
|
?>
|
|
"<?=$k?>": { color: "<?=$color?>", size: <?=$size?>, shape: "<?=$shape?>", icon: "<?=$icon?>" },
|
|
<?php } ?>
|
|
"default": { color: "#ef2929", size: 16, shape: "square", icon: "<?=$config['views_url']?>third/leaflet/images/marker-icon.png" }
|
|
};
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|