Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line dashes don't interpolate between stops #968

Closed
nickidlugash opened this issue Jan 29, 2015 · 2 comments
Closed

line dashes don't interpolate between stops #968

nickidlugash opened this issue Jan 29, 2015 · 2 comments
Labels

Comments

@nickidlugash
Copy link

Stop functions don't seem to get interpolated. It looks like the dasharray is just switching at the onset of the next zoom level in the stop function:

linedash-stop-functions

{
    "id": "admin_level_3",
    "type": "line",
    "source": "mapbox",
    "source-layer": "admin",
    "filter": ["all", [">=", "admin_level", 3], ["==", "maritime", 0]],
    "layout": {
      "line-join": "round"
    },
    "paint": {
      "line-color": "@admin",
      "line-dasharray": {
        "stops": [[4, [10, 3, 3, 3]], [18, [3, 0.5, 0.5, 0.5]]]
      },
      "line-width": {
      "base": 1,
      "stops": [[4, 0.4], [5, 1], [12, 3]]
      }
    }
  }
@mourner
Copy link
Member

mourner commented Jan 29, 2015

Wasn't this intended behavior? mapbox/mapbox-gl-style-spec#237

@nickidlugash
Copy link
Author

You're right. For some reason I wasn't thinking this would be the behavior :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants