-
Notifications
You must be signed in to change notification settings - Fork 817
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(SebmGoogleMapPolygon): support for polygon usage #652
Conversation
Modelled after polyline directive. Additional: - add containsLocation method to api-wrapper for interaction between points and polygons Resolves #615
Missing in the last commit
Missing in the last commit
Fix formatting errors
@gorango Thank you, this looks great! I will review it in the next few days |
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.
Added a few comments
* | ||
* ### Example | ||
* ```typescript | ||
* import {Component} from 'angular2/core'; |
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.
This code is outdated. Please use the Angular 2.0.0 way here
* | ||
* @Component({ | ||
* selector: 'my-map-cmp', | ||
* directives: [SebmGoogleMap, SebmGooglePolygon], |
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 remove this line
'zIndex', | ||
], | ||
outputs: [ | ||
'lineClick', 'lineDblClick', 'lineDrag', 'lineDragEnd', 'lineMouseDown', 'lineMouseMove', |
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.
change names to polyClick, polyDblClick, ...
return; | ||
} | ||
|
||
let options: {[propName: string]: any} = {}; |
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.
can you add move this code to a private method called _updatePolygonOptions
no need to store reference to options..
There were the following issues with your Pull Request
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 |
change line -> poly change polyline -> polygon
There were the following issues with your Pull Request
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 |
Hello @SebastianM & @gorango can you get it merged? Would love to use this feature :) |
Could we merge this please? Our deadline is in 3 hours :D |
@gorango merged, thanks! Modified a few lines. |
containsLocation
method to api-wrapper for interactionbetween points and polygons
Resolves #615