dapriett / nativescript-google-maps-sdk

Cross Platform Google Maps SDK for Nativescript
MIT License
244 stars 164 forks source link

infoWindow content is not updating #379

Closed mannok closed 4 years ago

mannok commented 4 years ago
    mapReadyHandler(evt){
        evt.object.infoWindowTemplate = `
            <FlexboxLayout flexDirection="column" style="width: 200; height: 200; background-color: blue;">
                <Label text="{{userData.addr}}" style="flex-shrink: 0; color: red;" />
            </FlexboxLayout>
        `;
    }

Hi, I have the above code. Whenever I click on each marker at the first time. The userData.addr shows correctly. However, when I further update the userData.addr to other value. The content in the info windows is not updated anymore even though I close and reopen the same info window (by clicking on the marker again).

How can I achieve into window content update? Thanks in advance.

dlcole commented 4 years ago

See my similar issue: https://github.com/dapriett/nativescript-google-maps-sdk/issues/372

mannok commented 4 years ago

@dlcole This is the fastest reply I ever get in github issue. Thanks haha