Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
331 views
in Technique[技术] by (71.8m points)

javascript - Shadow not showing google maps marker

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 
        });
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...