-
Notifications
You must be signed in to change notification settings - Fork 8
add export functionality #137
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
base: develop
Are you sure you want to change the base?
Conversation
stop propagation of click event and adjust layout enable geojson export Adjust Layout of export checkbox export button only when export allowed make export method overridable refactor adjust geometryexport
|
| type: 'button', | ||
| title: Mapbender.trans('mb.digitizer.toolset.exportSelected') | ||
| }) | ||
| .addClass('btn btn-default -fn-export-selected') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
|
||
| {%- block table_buttons -%} | ||
| <button class="-fn-check-for-export btn" title="{{ 'mb.digitizer.feature.export.check' | trans }}"> | ||
| <i class="fa fas fa-square-o"></i> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
square-o existed in Font Awesome 4, but was already removed in Font Awesome 5. https://fontawesome.com/search?q=square&o=r&ic=free
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it to fa-square
| revert.geometry: Geometrieänderung zurücknehmen | ||
| intersection.error: Ungültige Geometrie | ||
| feature: | ||
| export: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add translations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they are already there, just look one line below :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean in English, French, etc.
| registerButtonEvents: function(schema, $table) { | ||
| var self = this; | ||
|
|
||
| $table.on('click', 'tbody > tr .-fn-check-for-export', function(e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the specific tbody > tr and not just the .fn-check-for-export?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because I did not want to break the pattern used for the other click events
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I see. I'd vote for removing the tbody > tr for all of the click listeners, the more separation between markup and logic the more maintainable the code
|
For discussion
|

stop propagation of click event and adjust layout
enable geojson export
Adjust Layout of export checkbox
export button only when export allowed
make export method overridable
refactor
adjust geometryexport