雅虎地图设置 Smartwindow 尺寸
我希望能够更改我设置的智能窗口的尺寸,以便在单击给定标记时显示。默认的大小调整机制不会生成足够宽的窗口。检查了 Yahoo Maps API 但找不到任何传递维度的方法到智能窗口。有可能吗?
I am looking to be able to change the dimensions of smartwindows I have set to appear whenever a given marker is clicked. The default sizing mechanism is not producing windows that are wide enough. Checked the Yahoo Maps API but couldnt find any way to pass dimensions to a smart window. Is it even possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找不到任何将参数传递给 smartwindow 函数的解决方案,但无论如何,我通过为在智能窗口内渲染的 html 元素设置 CSS 样式来管理解决方法。我仍然不清楚如何在不指定窗口内元素尺寸的情况下计算智能窗口的尺寸(因为它没有反映标准样式),因此无论如何,如果有人有更优雅的解决方案,仍然欢迎添加。
couldnt find any solution that would pass parameters to the smartwindow function, but in any case i managed a workaround by setting CSS styles for the html elements i was rendering inside the smart windows. how the dimensions for a smart window are calculated without specifying dimensions for elements within the window is still unclear to me (as it did not reflect standard styling) so in any case if anyone has a more elegant solution additions are still welcome.