AckerApple / agm-overlays

Custom marker overlay for the @agm/core package
MIT License
25 stars 24 forks source link

Input [visible] not working #22

Open tomasharin opened 5 years ago

tomasharin commented 5 years ago

Hi, i have problem with [visible] input. I know some other ways how can I do it, but this one is much better. I have agm-overlay with ngFor, so ngIf I cant use. But I have some conditions for each marker specially, if current marker is visible or not. So will you repair [visible] input or I must do it som other way?

AckerApple commented 5 years ago

The following code is short hand as I am on the go:

ng-container(*ngFor=“”)
 agm-overlay(*ngIf=“”)

You put your for loop around your if.

If you need more help, write again and maybe you’ll catch me at a better moment. Also if you are trying to use a css style visible attribute, it would go on your html content and not the agm-overlay tag.

AckerApple commented 5 years ago

How did you do? Can we close this issue?