Skip to content
This repository has been archived by the owner on Apr 10, 2018. It is now read-only.

Support gradient-colored shapes #349

Closed
lucaswoj opened this issue Aug 21, 2015 · 7 comments
Closed

Support gradient-colored shapes #349

lucaswoj opened this issue Aug 21, 2015 · 7 comments

Comments

@lucaswoj
Copy link

It would be useful to support gradient-colored lines, fills, and backgrounds. What would the stylesheet syntax look like? How would this work with data-driven styling?

ref mapbox/mapbox-gl-native#2142

cc @webventil

@jfirebaugh
Copy link
Contributor

See also mapbox/mapbox-gl-js#748.

@tmcw
Copy link
Contributor

tmcw commented Aug 21, 2015

I think the style spec side here is totally doable but the hard part is going to be data representation: GeoJSON and lots of other formats are derived at a basic level from the Simple Features Spec, which, in its definition of 'simple' does not include the concept of values differing along lines, which is how I'd assume you would want to control the color of the line.

The GPX and OSM formats do support this, and I have a proposal for an add-on spec for GeoJSON. Vector tiles, as far as I know, don't support values along lines.

@tomtaylor
Copy link

While this is being considered, it would also be useful to be able to have polylines where the dashing varies along the line too. So you can make certain sections as dotted, for example.

@jordi-adame
Copy link

+1

@cowgp
Copy link

cowgp commented Feb 2, 2016

+1

@isimonescu
Copy link

Any progress on this?

@lucaswoj
Copy link
Author

lucaswoj commented Feb 1, 2017

This issue was moved to mapbox/mapbox-gl-js#4095

@lucaswoj lucaswoj closed this as completed Feb 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants