Bootstrap templates
- event mockup - login page
This commit is contained in:
25
locpick/templates/locpick/map.html
Normal file
25
locpick/templates/locpick/map.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<div id='locpick_map_canvas_{{id}}' style="width:{{width}}px; height:{{height}}px">
|
||||
|
||||
<script type="text/javascript">
|
||||
( function() {
|
||||
function initialize() {
|
||||
var center = new google.maps.LatLng({{map.center.0}}, {{map.center.1}});
|
||||
var position = new google.maps.LatLng({{map.position.0}}, {{map.position.1}});
|
||||
var myOptions = {
|
||||
zoom: {{map.zoom}},
|
||||
center: center,
|
||||
mapTypeId: google.maps.MapTypeId.HYBRID
|
||||
};
|
||||
var map = new google.maps.Map(document.getElementById("locpick_map_canvas_{{id}}"), myOptions);
|
||||
var marker = new google.maps.Marker({
|
||||
position: position,
|
||||
map: map
|
||||
});
|
||||
}
|
||||
|
||||
initialize();
|
||||
})();
|
||||
|
||||
</script>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user