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

JS Web Component Digitizing: define attributes to config the element #4662

Merged
merged 5 commits into from
Sep 3, 2024

Conversation

rldhont
Copy link
Collaborator

@rldhont rldhont commented Jul 30, 2024

Digitizing element provides user interface for digitizing shapes and text

The available Attributes are:

  • context - The digitizing context to linked element to Digitizing module context
  • selected-tool - Start selected drawing tools one of DigitizingAvailableTools or available-tools
  • available-tools - List of available drawing tools based on DigitizingAvailableTools
  • save - Enable save capability
  • measure - Enable measure capability
  • import-export - Enable import / export capabilities

By default

<lizmap-digitizing context="draw" save import-export measure></lizmap-digitizing>

For selection tool

<lizmap-digitizing context="selectiontool" selected-tool="box" available-tools="point,line,polygon,box,freehand" import-export></lizmap-digitizing>

For editing polygon, it could be used like that

<lizmap-digitizing context="editing" selected-tool="polygon" available-tools="polygon"></lizmap-digitizing>

@rldhont rldhont added user interface javascript Pull requests that update Javascript code run end2end If the PR must run end2end tests or not labels Jul 30, 2024
@github-actions github-actions bot added this to the 3.9.0 milestone Jul 30, 2024
@rldhont rldhont changed the title JS Web Componenet Digitizing: define attributes to config the element JS Web Component Digitizing: define attributes to config the element Jul 30, 2024
@rldhont rldhont merged commit 4e2ba70 into 3liz:master Sep 3, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement javascript Pull requests that update Javascript code new feature run end2end If the PR must run end2end tests or not user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants