26 lines
686 B
HTML
26 lines
686 B
HTML
|
<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>
|