-
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
Support data layer #819
Support data layer #819
Conversation
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.
Thanks for the PR. Please add the changes. Then I'm happy to merge it 👍
|
||
let layerId = 0; | ||
|
||
@Directive({ |
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 a description with an example? Please check out the other directives for examples
/** | ||
* The geoJson to be displayed | ||
*/ | ||
geoJson: Object|null = null; |
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.
when these values can change over time, we have to handle it in ngOnChange. Please check out the other directives.
setMap(map: GoogleMap): void; | ||
} | ||
|
||
export interface Feature extends MVCObject { |
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.
the properties of Feature are missing here: https://developers.google.com/maps/documentation/javascript/reference#Data.Feature
export interface Feature extends MVCObject { | ||
} | ||
|
||
export interface DataOptions{ |
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 all properties of DataOptions: https://developers.google.com/maps/documentation/javascript/reference#Data.DataOptions
Also: please remove the last commit with squashing to have one meaningful commit |
This introduces a new Directive called <sebm-google-map-data-layer> Closes #809
I have performed the requested changes. |
LGTM, good job! |
This introduces a new Directive called <sebm-google-map-data-layer> Closes sebholstein#809 Closes sebholstein#819
Support for data layers. These allow GeoJson to be added to the map.
I've only added the most basic functionalities for now.
datalayer example.txt