AckerApple / agm-overlays

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

Load Images #48

Closed uttamchaturvedi9 closed 4 years ago

uttamchaturvedi9 commented 4 years ago

I have one requirement to show/hide images on google map using agm something as shown below. I think there is some utility is available with AGM, however i am not aware of it.Below is my code to load map and on handleOnTilesLoaded() method I would like to add some code to load images. <agm-map [zoom]="5" [latitude]="lat" [longitude]="lng" (mapReady)="onMapReady($event)" (mapClick)="mapClick($event)" (mapReady)="mapReady($event)"(tilesLoaded)="handleOnTilesLoaded()">

2020-11-03_19h21_17

AckerApple commented 4 years ago

And the award for least amount of details in an issue description goes to...

uttamchaturvedi9 commented 4 years ago

Sorry for not providing complete details. I hope this must be clear now

AckerApple commented 4 years ago

Just use an ngIf on your agm-overlay to turn on off at will.

Put an img tag inside your agm-overlay and use ngIf to turn on off

uttamchaturvedi9 commented 4 years ago

Thanks Looks good

AckerApple commented 4 years ago

Close this issue. This is such a small matter you could have solved yourself. First no details then too much details. I mean an image tag and some ngif, you coulda come up with that.

uttamchaturvedi9 commented 4 years ago

fixed