Google Maps V3: Loading infowindow content via AJAX

前端 未结 4 1622
轮回少年
轮回少年 2020-12-24 06:47

What is the best way to load content into my infowindow using ajax? Right now I am getting a similar effect using iframes but I am not that that happy with it. I thought thi

4条回答
  •  甜味超标
    2020-12-24 07:10

    Already the content to the infoWindow is loaded but there are possibility if you are uploading images of large size then we have to wait for the first time to load the image fully and then set the content of infowindow and then display that infowindow. The solutions to the above requirement is ok but for images it might not get loaded instantly so to do that you have to check whether the content of the infowindow is loaded or not then only you have to display the info window.

提交回复
热议问题