阴影不显示谷歌地图标记 [英] Shadow not showing google maps marker

查看:113
本文介绍了阴影不显示谷歌地图标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个问题,我试图添加一个自定义的影子,但它不显示。我使用萤火虫检查错误,但没有错,路径也是正确的。我不知道为什么它不起作用。代码如下。

  var marker = new google.maps.Marker({
map:map,
位置:latlngset,
shadow:'codes / icon / shadow.png',
图标:baseicon +图标
});


解决方案

随着v3.14的发布作为实验版本,任何未指定版本号的地图都将获得新的视觉刷新行为,其中不包含阴影。

视觉更新的变化
$ b

  • 全部在视觉刷新中阴影已被删除。以编程方式指定的阴影将被忽略。


Having a problem, I'm trying to add a custom shadow but somehow it is not showing. I checked for bugs using firebug but nothing wrong, the path is also correct. I have no idea why it's not working. code below.

var marker = new google.maps.Marker({  
        map: map,
         position: latlngset, 
         shadow: 'codes/icon/shadow.png',
         icon: baseicon+icon 
        });

解决方案

With the release of v3.14 as the experimental version, any maps not specifying a version number, will get the new visual refresh behavior, which includes no shadows.

Changes in the visual refresh

  • All shadows have been removed in the visual refresh. Any shadows specified programmatically will be ignored.

这篇关于阴影不显示谷歌地图标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆