Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将默认 infoWindow 尾部的大小减小为 10px 并以地图位置为中心,即尾部应以 infoWindow 为中心,而不是一侧。
这可能吗?如果可以,请问您有任何例子吗?
提前致谢,
乙
您需要为此制作一个自定义信息窗口,看看 这个例子。
在 Google Chrome / Firefox 中查看源代码 -CTRL+U
CTRL+U
您也可以尝试从这些库中编辑/使用 InfoBox 。
我认为你不能只用 CSS 做你想做的事,因为谷歌使用图像作为标记。也许 CSS 覆盖和自定义图像的组合会做,但准备挖掘很多混乱(优化)的 css/html。