Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

feat(SebmGoogleMap): support draggable map option#556

Closed
josx wants to merge 2 commits into
sebholstein:masterfrom
josx:master
Closed

feat(SebmGoogleMap): support draggable map option#556
josx wants to merge 2 commits into
sebholstein:masterfrom
josx:master

Conversation

@josx

@josx josx commented Aug 10, 2016

Copy link
Copy Markdown
Contributor

Adding draggable option on map directive.
BTW I need it in my project to no let the user drag on the map.

@rc3media

Copy link
Copy Markdown

Simple enough ... looks good


/**
* Enables/disables if map is draggable.
*/

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This attribute name looks good, but the name of the input should be mapDraggable (as we don't want to remap native DOM properties)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ahh right, the dom draggable attribute. If someone wants to allow a user to drag a map around on the screen. Good Catch.
http://www.w3schools.com/tags/att_global_draggable.asp

@rc3media rc3media Aug 12, 2016

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice. so you can have translation on inputs like this?
'draggable: mapDraggable'
mapDraggable would be mapped to the property draggable

@sebholstein sebholstein Aug 12, 2016

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@rc3media

yes, the template would look like this:

<sebm-gogle-map [mapDraggable]="false"></sebm-google-map>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done!

@sebholstein

Copy link
Copy Markdown
Owner

@josx thanks! Please address the comments and I'm happy to merge it.

@GitCop

GitCop commented Aug 12, 2016

Copy link
Copy Markdown

There were the following issues with your Pull Request

  • Commit: 1780940
    • Your subject line is longer than 72 characters

Contribution guidelines are available at https://github.com/SebastianM/angular2-google-maps/blob/master/CONTRIBUTING.md


This message was auto-generated by https://gitcop.com

@GitCop

GitCop commented Aug 12, 2016

Copy link
Copy Markdown

There were the following issues with your Pull Request

  • Commit: 8626c8f
    • Your subject line is longer than 72 characters

Contribution guidelines are available at https://github.com/SebastianM/angular2-google-maps/blob/master/CONTRIBUTING.md


This message was auto-generated by https://gitcop.com

@GitCop

GitCop commented Aug 12, 2016

Copy link
Copy Markdown

There were the following issues with your Pull Request

  • Commit: 7948cbe
    • Your subject line is longer than 72 characters

Contribution guidelines are available at https://github.com/SebastianM/angular2-google-maps/blob/master/CONTRIBUTING.md


This message was auto-generated by https://gitcop.com

Signed-off-by: José Luis Di Biase <josx@interorganic.com.ar>
@GitCop

GitCop commented Aug 12, 2016

Copy link
Copy Markdown

There were the following issues with your Pull Request

  • Commit: bb9180d
    • Your subject line is longer than 72 characters

Contribution guidelines are available at https://github.com/SebastianM/angular2-google-maps/blob/master/CONTRIBUTING.md


This message was auto-generated by https://gitcop.com

… DOM remapping

Signed-off-by: José Luis Di Biase <josx@interorganic.com.ar>
@GitCop

GitCop commented Aug 12, 2016

Copy link
Copy Markdown

There were the following issues with your Pull Request

  • Commit: 254c2e9
    • Your subject line is longer than 72 characters

Contribution guidelines are available at https://github.com/SebastianM/angular2-google-maps/blob/master/CONTRIBUTING.md


This message was auto-generated by https://gitcop.com

@sebholstein

Copy link
Copy Markdown
Owner

Thanks, merged!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants