Google Maps in Grayscale

后端 未结 8 631
误落风尘
误落风尘 2021-01-30 05:01

Is there any way to display a Google Map (embedded via the Javascript API) in grayscale without losing any other functionality?

8条回答
  •  广开言路
    2021-01-30 05:45

    IE has the filter: gray directive.

    It renders any HTML element in grayscale. JSFiddle here.

    You may be able to apply this to the map's parent DIV. It may turn the map it contains in to a grayscale represtenation. I can't say whether this will work without side effects - you'd have to try. But it's well possible.

    IE only, though, but supported since Version 4.

    Grayscale Filter docs at MSDN

    Other than that, I think there is a Flash API for Maps, isn't there? It might be easier to achieve there.

提交回复
热议问题