我创建了一个自定义标记并使用下面的代码可以正常工作。我遇到的问题是当前自定义标记位于我的桌面上。但是,如果我将地图发送给某人,我如何让地图拾取自定义标记?
谢谢
代码
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<title>DC11-51 Sitelist Example Campaign 2013719.html</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
var latlng = new google.maps.LatLng(54.2,-2.8);
var myOptions = {
zoom: 6,
center: latlng,
streetViewControl: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
var image = new google.maps.MarkerImage('http://maps.gstatic.com/mapfiles/ms2/micons/red-dot.png', null, null, null,
new google.maps.Size(16, 16));
var myLatLng = new google.maps.LatLng(57.18001,-2.146337);
var Marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: "3910",
icon: 'Destest.PNG'})