mapbox / mapbox-gl-style-spec

76 stars 38 forks source link

Add "line-dasharray-origin" property #489

Closed samanpwbb closed 7 years ago

samanpwbb commented 8 years ago

It's common in vector editing tools to offset the origin point in a dasharray. Here's an example in inkscape:

screen shot 2016-09-02 at 12 27 19 pm

Changing that value offsets the whole array.

This property would be really useful when animating dasharrays. For example, a function like this would rotate the lines in the dasharray continuously:

  var origin = 0;
  setInterval(function() {
    map.setPaintProperty('layerid', 'dasharray-origin', origin);
    origin = origin + 1;
  }, 300);
lucaswoj commented 7 years ago

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