Google Maps:显示标记的本地图像

| 如何显示GMarker的本地图像?我正在使用v2。代码样例
var blueIcon = new GIcon(G_DEFAULT_ICON);
blueIcon.image = \'/Images/marker/mr.png\';
markerOptions = { icon: blueIcon };

map.setCenter(point, 3);
var marker = new GMarker(point, markerOptions);
它不起作用...     
已邀请:
如果您还没有看到v2文档,请点击以下链接: http://code.google.com/apis/maps/documentation/javascript/v2/overlays.html#Custom_Icons 另外,您实际上是将其添加到地图中,还是从代码中省略了它? 这是一个完整的示例: http://code.google.com/apis/maps/documentation/javascript/v2/examples/icon-simple.html     
Google地图站点本身就是地图页面的本地内容,因此,如果您要使用站点中的图像,则必须为其提供完整的URL。     

要回复问题请先登录注册