Wishlist

Custom code widget (QML or HTML/JS) with live GPS access in feature forms

X
Xavier PouliotinWishlist
about 17 hours ago

Feature request: Custom code widget (QML or HTML/JS) with live GPS access in feature forms

Summary
Allow a form widget that runs custom code (QML, or HTML + JavaScript in a web view) and can read the live GPS position, the current feature’s geometry and attributes, while working fully offline.

What is needed

  1. Custom widget in forms: a QML widget, or an HTML widget that runs JavaScript (canvas/SVG drawing).

  2. Live position inside the widget: continuous updates of @position_* (coordinate, accuracy, elevation) while the form is open. Today the values seem to be read only when the form opens.

  3. Access to the current feature: geometry, attributes and layer CRS, available offline (no server call).

Our use case
We generate slope profiles of lines (sap tubing / pipelines) in QGIS and store them as a PNG in an attachment field. In the field, we want to open the line’s form and see a live dot moving along the profile chart as we walk next to the line. That way we know exactly where we are on the slope profile and can check the slopes on site. Today the chart is only a static image.

Why it helps other users

  • Live chainage/station display along any linear asset (pipes, roads, fences, power lines, trails)

  • Field checks: distance and elevation difference from a design line or a target point

  • Custom gauges, mini-charts and calculators inside forms (e.g. slope, volume, area as you walk)

  • Display rules and guidance that react to the user’s real-time position

  • Same flexibility already offered in QGIS desktop forms (QML/HTML widgets) and in your new web map JavaScript customizations

Minimum acceptable version
Even a QML widget with read-only access to @position_coordinate (live), $geometry and field values would cover most of these cases.

Thanks! Happy to test a beta version.

Sercovier.ca

  1. Submitted
  2. Planned
  3. In Progress
  4. Completed
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...