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

Feature Request: Uniquely style geodesic points #11

Open
jaybo opened this issue Jan 10, 2022 · 1 comment
Open

Feature Request: Uniquely style geodesic points #11

jaybo opened this issue Jan 10, 2022 · 1 comment

Comments

@jaybo
Copy link

jaybo commented Jan 10, 2022

I'm trying to show a dot at the vertices of a line_string, but not at the added geodesic points. So I'm trying to figure out if there's any "meta" setting which can be used in the style to filter out the geodesic points (while still showing dots at the original vertices), like:

  // this puts a dot at original vertices AND geodesic points

  id: "gl-draw-line-static-vertices",
  type: "circle",
  filter: [
      "all",
      ["==", "$type", "LineString"],
      ["==", "active", "false"],
      ["==", "mode", "static"],
  ],

I was hoping I could do something like:

  filter: [
      "all",
      ["==", "$type", "LineString"],
      ["!=", "meta", "geodesic"],   // ANY WAY TO DO A FILTER LIKE THIS?
      ["==", "active", "false"],
      ["==", "mode", "static"],
  ],

Is this possible?

@zakjan
Copy link
Owner

zakjan commented Jan 23, 2022

Hi @jaybo, thanks for the idea! I'm not sure whether it's possible, could you investigate it, and possibly send a PR?

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

No branches or pull requests

2 participants