question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat(infowindow): leveraging open status

See original GitHub issue

In 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
alexwebercommented, Jun 20, 2016

@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!

0reactions
iBasitcommented, Sep 6, 2016

I’m still getting this issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found