简体   繁体   English

如何重新初始化或清除谷歌地图信息窗口缓存

[英]How can I reinit or clear google maps infowindow cache

I have created a nested carousel inside of a gmaps infowindow, the top level carousel keeps track of all of the nested slides.我在 gmaps 信息窗口内创建了一个嵌套的轮播,顶级轮播跟踪所有嵌套的幻灯片。 It works perfect on the first infowindow instance, but when I click another marker and when the next infowindow opens the count is based off of the previous infowindow..它在第一个 infowindow 实例上运行良好,但是当我单击另一个标记并且下一个 infowindow 打开时,计数基于前一个 infowindow ..

is there a way to destory the last instance of the infowindow?有没有办法销毁信息窗口的最后一个实例?

修复了这个问题,不得不将事件侦听器更改为仅 addListenerOnce。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Google Maps Api的数据层中添加信息窗口 - how can I add an infowindow to a data layer in Google maps Api 如何在Google地图的信息窗口中创建按钮? - How can I create a button inside an infowindow in google maps? 如何在Google Maps InfoWindow中使用jQuery或JavaScript? - How can I use jQuery or JavaScript inside a Google Maps InfoWindow? 如何将 ajax 数据从谷歌地图信息窗口发送到 Laravel 控制器? - How can i send ajax data from google maps infowindow to laravel controller? 如何在信息窗口(Google Maps API v3)中填充下拉列表? - How can I populate a dropdown list in an infowindow (Google Maps API v3)? 如何在自定义群集标记中打开InfoWindow-Google Maps - How can I open InfoWindow inside custom cluster Marker - Google Maps 使用 google maps JS api,如何打开用户单击地图的信息窗口? 那可能吗? - Using google maps JS api, how can I open an infowindow where the user clicks on the map? Is that possible? 如何在Google Maps标记信息窗口中为标记数组添加数组键数据项? - How can I add the array key data item in google maps marker infowindow for an array of markers? 如何使用Google Maps 3 API关闭信息窗口? - How do I close an infowindow with Google Maps 3 API? 如何让信息窗口停留在Google地图中标记的鼠标移出位置? - How do i let the infowindow stay on mouseout of the marker in google maps?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM