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

Support data layer#819

Closed
IlianSchokkaert wants to merge 1 commit into
sebholstein:masterfrom
IlianSchokkaert:geo-json-layer
Closed

Support data layer#819
IlianSchokkaert wants to merge 1 commit into
sebholstein:masterfrom
IlianSchokkaert:geo-json-layer

Conversation

@IlianSchokkaert

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

@sebholstein sebholstein left a comment

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.

Thanks for the PR. Please add the changes. Then I'm happy to merge it 👍


let layerId = 0;

@Directive({

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.

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

Choose a reason for hiding this comment

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

@sebholstein

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

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

@sebholstein

Copy link
Copy Markdown
Owner

LGTM, good job!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants