Changing data in the info window with Google Map markers

前端 未结 4 725
忘掉有多难
忘掉有多难 2021-01-02 12:24

I\'ve followed this tutorial to create a custom Google Map. I\'ve included a few other elements such as linking it up to Wordpress and clustering the markers.

It\'s

4条回答
  •  灰色年华
    2021-01-02 13:07

    The issue is with your closure. The for loop isn't handling your scope correctly. Extract all the code from inside the for loop into a separate function and the closure should work.

提交回复
热议问题