Skip to content

feat(google-maps): Add KML Layer component to Google Maps #19226

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

Merged
merged 4 commits into from
Jul 27, 2020

Conversation

mbehrlich
Copy link
Collaborator

Implement KML layers in @angular/google-maps. This allows users to
specify a .kml file that configures many options that display on a
Google Map. See
https://developers.google.com/maps/documentation/javascript/reference/kml

@mbehrlich mbehrlich requested a review from a team as a code owner May 2, 2020 00:21
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 2, 2020
@mbehrlich mbehrlich added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release labels May 2, 2020
export class MapKmlLayer implements OnInit, OnDestroy {
private _eventManager = new MapEventManager(this._ngZone);
private readonly _options = new BehaviorSubject<google.maps.KmlLayerOptions>({});
private readonly _url = new BehaviorSubject<string>('');
Copy link
Member

Choose a reason for hiding this comment

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

This will pass an empty string to the map if we subscribe before the url has been assigned. Would that result in an error from the Maps API? We could use a ReplaySubject here instead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Url is also in options, so this allows the user to specify url as its own property, or to just include it as an option. Url is also allowed to be an empty string or undefined by the api, so it should not cause errors if the user uses an empty string on purpose.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added blocked This issue is blocked by some external factor, such as a prerequisite PR lgtm labels May 12, 2020
@jelbourn
Copy link
Member

FYI, we're feature-frozen right now leading up to the v10 RC. We should be able to merge in ~2 weeks.

@jelbourn jelbourn added action: merge The PR is ready for merge by the caretaker and removed blocked This issue is blocked by some external factor, such as a prerequisite PR labels Jul 23, 2020
Implement KML layers in @angular/google-maps. This allows users to
specify a .kml file that configures many options that display on a
Google Map. See
https://developers.google.com/maps/documentation/javascript/reference/kml
Remove non-null assertions from KML Layer component.
Add exportAs to the directive to match the other components.
Fix test failure caused by merge.
@jelbourn jelbourn merged commit 2b00725 into angular:master Jul 27, 2020
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants