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

feat(SebmGoogleMap): support draggable map option #556

Closed
wants to merge 2 commits into from

Conversation

josx
Copy link
Contributor

@josx josx commented Aug 10, 2016

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

Simple enough ... looks good

@@ -79,6 +79,11 @@ export class SebmGoogleMap implements OnChanges, OnInit {
zoom: number = 8;

/**
* Enables/disables if map is draggable.
*/
draggable: boolean = true;
Copy link
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
Owner

Choose a reason for hiding this comment

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

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

Copy link

@rc3media rc3media Aug 12, 2016

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

Copy link
Owner

@sebholstein sebholstein Aug 12, 2016

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
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
Owner

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

@GitCop
Copy link

GitCop commented Aug 12, 2016

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
Copy link

GitCop commented Aug 12, 2016

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
Copy link

GitCop commented Aug 12, 2016

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

@GitCop
Copy link

GitCop commented Aug 12, 2016

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

@GitCop
Copy link

GitCop commented Aug 12, 2016

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
Owner

Thanks, merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants