标记没有出现,我阅读了文档但我找不到问题,有人可以帮我吗?
继承人的js:
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(-8.064903, -34.896872),
zoom: 16,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
var marker = new google.maps.Marker({
position: location,
title:"Hello World!",
visible: true
});
marker.setMap(map);
}