简体   繁体   English

想要在Google地图中为标记创建信息窗口

[英]Want to create the infowindow for the marker in google map

I want to create such kind of a marker which will display various info like table getting data from database,image,buttons,labels..etc but I am not able to do so, So my question is..Is there any other method rather than infowindow which should be opened when I click the respective Marker to perform my task? 我想创建一个这样的标记,它将显示各种信息,例如表格,从数据库,图像,按钮,标签等获取数据。但是我无法这样做,所以我的问题是..还有其他方法吗?而不是当我单击相应的标记来执行任务时应打开的信息窗口? ,I have also worked on Modal Dailog Box and Also if I am making use of alert box but this is also not helping me,So any suggestion... Thanking all.. ,我还从事过Modal Dailog Box的研究,如果我正在使用警报盒,但这也无济于事,所以有什么建议...谢谢。

Clicking a marker does not have to create an infowindow. 单击标记不必创建信息窗口。 Clicking the marker triggers and event, and you can decide what happens next. 单击标记触发和事件,您可以决定下一步将发生什么。 This includes everything you said above 这包括您上面所说的一切

-Getting data from DB -Displaying images -Creating or deleting buttons -从数据库中获取数据-显示图像-创建或删除按钮

and much more. 以及更多。

Inside the event listener is where you want to put your new code. 在事件侦听器内部是您想要放置新代码的位置。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM