Google Map API v3 shade everything EXCEPT for polygon

So by now we're familiar with adding shapes to a Google map with the v3 API: $j('#map').gmap('addShape', 'Circle', { 'strokeWeight': 0, 'fillColor': "#008595", 'fillOpacity': 0.25, 'center': result[0].geometry.location, 'radius': 1500, 'clickable': false }); The above code will create a circle and shade it with fill #008595. Is there any way to inversely shade a map? I would like the entire world to be shaded/filled at half opacity except for a hole where my markers are. Possible?
Check out the solution posted here:…

以上就是Google Map API v3 shade everything EXCEPT for polygon的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准