问题在Bing地图V7信息框重新定位 [英] Issue in infobox repositioning in Bing map v7

查看:199
本文介绍了问题在Bing地图V7信息框重新定位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在用的是冰地图版本7的显示事件及其对地图的详细信息。对于我已经添加了以下参考js文件 HTTP :?//ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx v = 7.0&安培; MKT =德

I am using the Bing map version 7 for the displaying the events and its details on map. For that i have added the following reference js file "http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&mkt=de"

我已经实现了显示在地图上的事件引脚和信息框显示事件的详细信息。我被困了在信息框这是地图的边界上显示事件的详细信息。此信息框那张地图之外。

I have implemented the displaying the event pin on map and displaying the event details in infobox. I am stuck up with displaying event details in infobox which are on the boundary of the map. This infobox goes outside the map.

我已经在帖子找到解决方案
<一href=\"http://stackoverflow.com/questions/9269455/cool-infobox-and-plot-polygons-through-xml-in-bing-maps-pure-javascript\">Cool通过XML信息框和情节多边形....在Bing地图,纯JavaScript

I have found on solution in the post Cool Infobox and plot polygons through xml ....in bing maps , pure javascript

不过,即使实施上面的链接中提到的解决方案(CustomInfoboxModule)之后,我面临着有更多的细节事件的问题。

But even after implementing the solution mentioned(CustomInfoboxModule) in above link, i am facing the issue for the events having more details.

请检查

推荐答案

不是100%肯定,如果我理解这个问题。是你的问题,该信息框落在地图之外吗?如果是这样,如果你让你的信息框足够大,这是必然要发生的。有一对夫妇的解决方案:

Not 100% sure if I understand the question. Is your issue that the infobox falls outside of the map? If so, if you make your Infobox big enough this is bound to happen. There are a couple of solutions:


  1. 限制你的描述区域的大小(即给它一个最大高度),并使其滚动(即溢出-Y:自动)。这将确保您的信息框不超过一定的高度。您正在使用的自定义信息框控制,在此基础上象限图钉是持仓量信息框,如果图钉是在左上角的信息框显示向右和向下。如果图钉在右下角的信息框被显示在左边以上。这意味着,如果确保信息框的最大高度是地图的高度的一半,即它应该总是在地图中显示。

  2. 或者,如果你知道的信息框决不会比地图的高度越大,你可以简单地重新定位地图,使图钉较高,然后打开信息框。

这篇关于问题在Bing地图V7信息框重新定位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆