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

Support data layer #819

Closed
wants to merge 1 commit into from
Closed

Support data layer #819

wants to merge 1 commit into from

Conversation

IlianSchokkaert
Copy link
Contributor

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

Copy link
Owner

@sebholstein sebholstein left a 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({
Copy link
Owner

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

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

Choose a reason for hiding this comment

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

export interface Feature extends MVCObject {
}

export interface DataOptions{
Copy link
Owner

Choose a reason for hiding this comment

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

@sebholstein
Copy link
Owner

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
@IlianSchokkaert
Copy link
Contributor Author

I have performed the requested changes.
Added an example, use OnChanges, added missing properties of some google-maps-types.

@sebholstein
Copy link
Owner

LGTM, good job!

franknwankwo pushed a commit to caravancoop/angular2-google-maps that referenced this pull request Jun 7, 2017
This introduces a new Directive called <sebm-google-map-data-layer>

Closes sebholstein#809
Closes sebholstein#819
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants