You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

98 lines
2.1 KiB

<!doctype html>
<html>
<head>
<link rel="stylesheet" href="/static/leaflet/leaflet.css" />
<link rel="stylesheet" href="/static/leaflet/leaflet.draw.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet.ie.css" />
<![endif]-->
<style type="text/css">
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#map {
width: 100%;
height: 100%;
}
#overlayWrapper {
position: absolute;
top: 10px;
right: 45px;
bottom: 10px;
overflow: auto;
background: rgba(255,255,255,0.7);
}
.selectedItem {
background-color: #7EF6EF;
}
#itemsList li {
cursor:pointer;
list-style-type: none;
padding-top: 4px;
padding-bottom: 4px;
font-family: sans-serif;
font-size: 17px;
color: #333;
}
#itemsList li:hover {
color: #000;
}
#opacityControl {
position: absolute;
width: 20%;
left: 40%;
bottom: 25px;
}
#opacityRange {
width: 100%;
}
</style>
<script src="/static/leaflet/leaflet.js"></script>
<script src="/static/leaflet/leaflet.draw.js"></script>
<script src="/static/leaflet/TileLayer.Bing.js"></script>
<script src="http://code.jquery.com/jquery.js"></script>
<script>
CONTENT_TYPE_ID = {{ content_type_id }};
</script>
</head>
<body>
<div id="map"></div>
<div id="opacityControl">
<input type="range" min="0" max="1" step="0.1" value="1" id="opacityRange" />
</div>
<div id="overlayWrapper">
<select id="ctypeList" name="ctypeList">
{% for c in ctypes %}
<option value="{{ c.id }}" {% ifequal c.id content_type_id %} selected {% endifequal %}>
{{ c.name }}
</option>
{% endfor %}
</select> <br />
<ul id="itemsList">
</ul>
<div id="itemInfo">
</div>
</div>
<script src="/static/js/edit.js"></script>
</body>
</html>