这是我的代码:
self.textview.modify_font(pango.FontDescription('monospace'))
function initMap() {
var myLatLng = {lat: {{userInfo.lat}}, lng: {{userInfo.lng}} };
var map = new google.maps.Map(document.getElementById('gmap'), {
zoom: 16,
center: myLatLng
});
// Add circle overlay and bind to marker
var circle = new google.maps.Circle(document.getElementById('gmap'), {
strokeColor: '#FF0000',
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: '#FF0000',
fillOpacity: 0.35,
map: map,
center: myLatLng,
radius: 100 // 10 miles in metres
});
}
显示lat和lng在那里,地图实际上缩放到我想要的位置。但是圆圈没有出现。任何人都可以帮助我吗?