Is there a way to display an element only when a specific function is executed or a particular click event occurs? Here's the html code snippet I'm currently working with:
<sebm-google-map [latitude]="lat" [longitude]="lng" [zoom]="zoom" [mapTypeId]="maptype" [mapTypeControlOptions]="mapTypeControlOptions">
<sebm-google-image-map-type [mapLayerId]="'linz'" [options]=imageMapOptions>
<sebm-google-map-marker *ngFor="#location of locations" [latitude]="location.lat" [longitude]="location.lng" [label]="location.id" (markerClick)="updateDiv()">
<sebm-google-map-info-window [disableAutoPan]="true"> {{ location.id }} <strong>{{ location.content }}</strong></sebm-google-map-info-window>
</sebm-google-map-marker>
</sebm-google-image-map-type>
</sebm-google-map>
<section *ngIf="markerClick==true" id="ethiopian-desert">TEST</section>
I attempted using markerClick to achieve this functionality, but it doesn't seem to be functioning as expected. My goal is to display the element when a marker is clicked and hide it when the user clicks outside the element.
Check out the plunker example here