-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Conversation
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>(''); |
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 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.
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.
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.
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.
LGTM
FYI, we're feature-frozen right now leading up to the v10 RC. We should be able to merge in ~2 weeks. |
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.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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