2
我的地图显示完美,唯一缺少的是标记和标题。有人可以查看我的代码,看看为什么我的标记没有显示出来吗?谷歌地图标记不显示
我的代码;
<script type="text/javascript">
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(55.6078568,13.0126611),
zoom: 16,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("google_map_392"),
mapOptions);
var point = new google.maps.LatLng(55.6078568,13.0126611)
var marker = new google.maps.marker({
position:point,
map:map,
});
}
</script>
谢谢!
格朗当感谢你,标记现在显示,但仍然没有标题,我只是复制并粘贴您的代码 – Abel
奥克其工作如果我想添加一个HTML?喜欢这个; html:“
公司地址
0771 - 222 222
[email protected]
如果您将鼠标悬停在标记上,则该标题仅显示为工具提示。你确定没有发生,或者你是否以'标题'来表示其他意思? – duncan