Google Maps JS API:梯度折线 [英] Google Maps JS API: Gradient Polyline

查看:71
本文介绍了Google Maps JS API:梯度折线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS版本的Google Maps API中,有一种使用"spans"属性进行渐变折线的方法.

In the iOS version of the Google Maps API, there's a way of doing gradient polylines using the "spans" property.

但是,没有通过JavaScript提及此选项.

However, there's no mention of this option via JavaScript.

https://developers.google.com/maps/documentation/javascript/reference?csw = 1#Polyline

是否有通过JS进行渐变多段线的好方法?

Is there a good way to do a gradient polyline via JS?

谢谢!

推荐答案

似乎这是SVG的局限性,我们只是创建了很多条几乎没有渐变的线.

As it seems this is a limitation of SVG, we just created a ton of lines with little gradients instead.

这篇关于Google Maps JS API:梯度折线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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