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

Support new map styling #816

Open
cnouguier opened this issue Jan 30, 2024 · 0 comments
Open

Support new map styling #816

cnouguier opened this issue Jan 30, 2024 · 0 comments
Assignees
Labels
enhancement map Issue affecting map module
Projects
Milestone

Comments

@cnouguier
Copy link
Contributor

cnouguier commented Jan 30, 2024

We'd like to support our own style specification :

style: {
  // Line geometry
  line: {
    color: primary,
    width: 1,
    opacity: 1.0,
    cap: 'round', // https://developer.mozilla.org/fr/docs/Web/SVG/Attribute/stroke-linecap
    join: 'round', // https://developer.mozilla.org/fr/docs/Web/SVG/Attribute/stroke-linejoin
    dashArray: 'none',
    dashOffset: 0
  },
  // Polygon geometry
  polygon: {
    color: primary,
    opacity: 1.0,
    fillRule: 'evenodd' // https://developer.mozilla.org/fr/docs/Web/SVG/Attribute/fill-rule
    stroke: {
        color: primary,
        width: 1,
        opacity: 1.0,
        cap: 'round', // https://developer.mozilla.org/fr/docs/Web/SVG/Attribute/stroke-linecap
        join: 'round', // https://developer.mozilla.org/fr/docs/Web/SVG/Attribute/stroke-linejoin
        dashArray: 'none',
        dashOffset: 0
    }
  },
  // Point geometry
  marker: {
    shape: 'circle',
    size: ['24px', '24px'],
    radius: undefined, 
    color: primary
    opacity: 1.0,
    stroke: { 
        color: primary,
        width: 1,
        opacity: 1.0,
        cap: 'round', // https://developer.mozilla.org/fr/docs/Web/SVG/Attribute/stroke-linecap
        join: 'round', // https://developer.mozilla.org/fr/docs/Web/SVG/Attribute/stroke-linejoin
        dashArray: 'none',
        dashOffset: 0
    },
    icon: {
      classes: undefined // must be specified
      url: ''
      color: 'black',
      opacity: 1.0,
      size: '14px',
      translation: ['-50%', '-50%'],
      rotation: 0
    },
    text: {
      label: undefined, // must be specified
      color: 'black',
      size: '12px',
      translation: ['-50%', '-50%'],
      rotation: 0
    },
   htmlt: null
  }
}

We still need to support simplespec style for backward compatibility

@cnouguier cnouguier added this to the v2.2.x milestone Jan 30, 2024
@cnouguier cnouguier self-assigned this Jan 30, 2024
@cnouguier cnouguier added this to To do in Roadmap via automation Jan 30, 2024
@cnouguier cnouguier added the map Issue affecting map module label Jan 30, 2024
cnouguier added a commit that referenced this issue Jan 30, 2024
cnouguier added a commit that referenced this issue Feb 6, 2024
@cnouguier cnouguier moved this from To do to In progress in Roadmap Feb 8, 2024
cnouguier added a commit that referenced this issue Feb 8, 2024
cnouguier added a commit that referenced this issue Feb 8, 2024
@cnouguier cnouguier changed the title Improve map styling Support new map styling Feb 8, 2024
cnouguier added a commit that referenced this issue Feb 8, 2024
wip: Allow to provide a specific style for the location marker in the location map #810
wip: Enhance marker rendering to homogenize map and legend display #795
cnouguier added a commit that referenced this issue Feb 8, 2024
wip: Enhance marker rendering to homogenize map and legend display #795
cnouguier added a commit that referenced this issue Feb 8, 2024
cnouguier added a commit that referenced this issue Feb 8, 2024
cnouguier added a commit that referenced this issue Feb 8, 2024
cnouguier added a commit that referenced this issue Feb 9, 2024
cnouguier added a commit that referenced this issue Feb 9, 2024
cnouguier added a commit that referenced this issue Feb 9, 2024
cnouguier added a commit that referenced this issue Feb 9, 2024
cnouguier added a commit that referenced this issue Feb 10, 2024
cnouguier added a commit that referenced this issue Feb 22, 2024
cnouguier added a commit that referenced this issue Feb 29, 2024
cnouguier added a commit that referenced this issue Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement map Issue affecting map module
Projects
Roadmap
  
In progress
Development

No branches or pull requests

1 participant