Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[FEATURE] Embed atlas feature into composer HTML source as GeoJSON
This change makes the current atlas feature (and additionally all attributes of related child features) available to the source of a composer HTML item, allowing the item to dynamically adjust its rendered HTML in response to the feature's properties. An example use case is dynamically populating a HTML table with all the attributes of related child features for the atlas feature. To use this, the HTML source must implement a "setFeature(feature)" JavaScript function. This function is called whenever the atlas feature changes, and is passed the atlas feature (+related attributes) as a GeoJSON Feature. Sponsored by Kanton of Zug, Switzerland
- Loading branch information
Showing
with
97 additions
and 0 deletions.
- +14 −0 src/core/composer/qgscomposerhtml.cpp
- +3 −0 src/core/composer/qgscomposerhtml.h
- +80 −0 tests/src/core/testqgscomposerhtml.cpp
- BIN ...mages/composer_html/expected_composerhtml_setfeature/default/expected_composerhtml_setfeature.png
- BIN .../composer_html/expected_composerhtml_setfeature/default/expected_composerhtml_setfeature_mask.png
- BIN ...images/composer_html/expected_composerhtml_setfeature/travis/expected_composerhtml_setfeature.png
Binary file not shown.
Binary file not shown.
Binary file not shown.