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

Enable to configurate the default display of measurements #3146

Merged

Conversation

julsbreakdown
Copy link
Member

Adds a showMeasure variable that can be configurated in the template to check by default the display measurement check box.

gmf-drawfeature-showmeasure="true"

@sbrunner sbrunner added this to the 2.3 milestone Nov 22, 2017
@@ -97,7 +97,8 @@ ngeo.drawfeatureDirective = function() {
bindToController: {
'active': '=ngeoDrawfeatureActive',
'features': '=?ngeoDrawfeatureFeatures',
'map': '=ngeoDrawfeatureMap'
'map': '=ngeoDrawfeatureMap',
'showMeasure': '=?ngeoDrawfeatureShowmeasure'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also add a small doc for this option above (@htmlAttribute)

Copy link
Member

@sbrunner sbrunner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :-)

@julsbreakdown julsbreakdown merged commit 29e3183 into camptocamp:master Nov 24, 2017
@julsbreakdown julsbreakdown deleted the jwaddle_display_default_area branch November 24, 2017 08:17
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

Successfully merging this pull request may close these issues.

3 participants