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

stroke style directive #17

Closed

Conversation

alienlike
Copy link
Contributor

No description provided.

@alienlike
Copy link
Contributor Author

Rebased and ready for review.

Copy link
Owner

@quentin-ol quentin-ol left a comment

Choose a reason for hiding this comment

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

LGTM, @FallenRiteMonk ?

@@ -1,5 +1,7 @@
import { Component, Directive, EventEmitter, Host, OnDestroy, OnChanges, AfterContentInit, Input, Output, ContentChild } from '@angular/core';
import { style } from 'openlayers';
import { Subscription } from 'rxjs/Subscription';
import { Observable } from 'rxjs/Observable';
Copy link
Contributor

Choose a reason for hiding this comment

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

Unused import Observable

if (this.iconStyleDirective) {
this.childSubscription$ = this.iconStyleDirective.onChanged.subscribe((): void => this.update());
}
else if (this.strokeStyleDirective) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can stroke and icon not be used on the same style element?
If they can, this shouldn't be else if but only if
same for the update function

@FallenRiteMonk
Copy link
Contributor

The code looks good to me, but wasn't able to test it due to the lack of an example.
Please add a usage of stroke to the example, might also be good for other users.

@alienlike
Copy link
Contributor Author

alienlike commented Dec 22, 2016

Addresses comments above.

@FallenRiteMonk
Copy link
Contributor

LGTM, I would also say that you can keep the relative path as a temporary solution since its more important that everybody can test the example than it being aot compatible, especially since we know that library is aot compatible at the moment. Then when we finished discussing the real solution in #30 we can change it again.

@alienlike
Copy link
Contributor Author

Cool. I will leave the rel path then.

@quentin-ol
Copy link
Owner

should be addressed in 0.5.0, though in exactly the same fashion. Feel free to reopen if need be.

@quentin-ol quentin-ol closed this Jan 18, 2017
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.

None yet

3 participants