Google Maps visualRefresh上的阴影 [英] Shadows on Google Maps visualRefresh
问题描述
在Google地图文档中( https://developers.google.com/ maps / documentation / javascript / reference#MarkerOptions )它说:
当google.maps.visualRefresh
在使用visualRefresh时,是否可以覆盖它并获得阴影显示?
我也发现了这些文档( https://devsite.googleplex.com/maps/documentation/javascript/basics ):
在视觉刷新中已删除所有阴影。任何以编程方式指定的阴影都将被忽略。
对我来说,他们不会允许您以某种方式覆盖它,以允许阴影和visualRefresh,如果是这种情况的话。
。您可以创建带有阴影。
或者为包含阴影的标记制作自定义覆盖图(即不包含google.maps.Marker对象)。
概念验证,从我对相关问题的回答: Google地图v3中的标记阴影
现在是更多的工作,但仍然有可能,因为它不再是默认行为。
In the Google Maps docs (https://developers.google.com/maps/documentation/javascript/reference#MarkerOptions) it says:
"Shadows are not rendered when google.maps.visualRefresh is set to true."
Is it possible to overwrite this and get the shadows to show up while using the visualRefresh?
I have also found the docs stating this (https://devsite.googleplex.com/maps/documentation/javascript/basics):
All shadows have been removed in the visual refresh. Any shadows specified programmatically will be ignored.
It still seems odd to me that they wouldn't allow you to somehow overwrite this to allow shadows AND the visualRefresh, if that's the case.
You can create your marker icon with a shadow.
Or make a custom overlay for your markers which includes a shadow (i.e. not the google.maps.Marker object).
proof of concept, from my answer to the related question: Marker shadows in Google Maps v3
It is now more work, but still possible, as it is no longer the default behavior.
这篇关于Google Maps visualRefresh上的阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!