feat(infowindow): leveraging open status
See original GitHub issueIn MyMapComponent I have the following handler from the (markerClick):
clickedMarker(index: number) {
this.selectedMarker = index;
for (let i = 0; i < this.markers.length; i++) {
if (i !== index) {
this.markers[i].isOpen = false;
}
}
console.log(`clicked the marker: ${index}`);
}
this works the first time but after the 1st time and sequential infowindow opens it no longer works
map HTML:
<sebm-google-map-marker *ngFor="let m of markers; let i = index"
(markerClick)="clickedMarker(i, $event)"
[latitude]="m.lat"
[longitude]="m.lng"
[markerDraggable]="m.draggable"
[iconUrl]="m.iconUrl"
(dragEnd)="markerDragEnd($event)">
<sebm-google-map-info-window [isOpen]="m.isOpen">
<infowindow [eventMarker]="m"
[allEventMarkers]="markers"
[currentIndex]="i">
</infowindow>
</sebm-google-map-info-window>
</sebm-google-map-marker>
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
feat(infowindow): leveraging open status · Issue #446 - GitHub
In MyMapComponent I have the following handler from the (markerClick): clickedMarker(index: number) { this.selectedMarker = index; for (let ...
Read more >Info Window | Maps JavaScript API - Google Developers
Creates an info window with the given options. An InfoWindow can be placed on a map at a particular position or above a...
Read more >Google Maps: Auto close open InfoWindows? - Stack Overflow
The InfoWindows stay open unless you explicitly click the close icon. Meaning, you can have 2+ InfoWindows open at a time if you...
Read more >itunes over capacity other
Itunes Over Capacity OtherMSI designs and creates Mainboard, AIO, Graphics card, Notebook, Netbook, Tablet PC, Consumer electronics, …
Read more >IBM AS/400E USER HANDBOOK MANUAL Pdf Download
OS/400 V4R5 operating software support these models. ... The AS/400e system is uniquely positioned to leverage Java as it evolves from its current...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@brian-singer I’ve been trying to look into this but I can’t quite figure out how you set the rest up. If you wouldn’t mind reproducing it in a plunk (this is a good starting point) it would be really helpful!
I’m still getting this issue