使用Bing映射和Bootstrap(Using Bing maps with Bootstrap)
我有以下HTML:
<head> <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3"></script> <script type="text/javascript" src="~/Scripts/IndexView.js"></script> </head> <body onload="LoadMap();"> <div class="row"> <div> <h2>Where do you want to go?</h2> </div> </div> <div class="row"> <div id="pnlMap"> </div> </div> <div class="row"> <div style="align-content:center"> <h3>Test</h3> </div> </div> </body>
和IndexView.js:
function LoadMap() { var map = new VEMap('pnlMap'); map.LoadMap(); }
我最终得到的是地图从网页左上角开始的页面。 我想要的是让地图出现在文字下方你想要去哪里? 。
据我了解引导“行”的工作方式,他们应该顺序出现在页面上,如果我用文本替换地图,那正是发生了什么; 那么,是否有Bing地图打破了这一规则。 看看我在做什么似乎是正确的。
I have the following HTML:
<head> <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3"></script> <script type="text/javascript" src="~/Scripts/IndexView.js"></script> </head> <body onload="LoadMap();"> <div class="row"> <div> <h2>Where do you want to go?</h2> </div> </div> <div class="row"> <div id="pnlMap"> </div> </div> <div class="row"> <div style="align-content:center"> <h3>Test</h3> </div> </div> </body>
And IndexView.js:
function LoadMap() { var map = new VEMap('pnlMap'); map.LoadMap(); }
What I end up with is a page where the map starts at the very top left of the web page. What I want is for the map to appear beneath the text Where do you want to go?.
As I understand the way that bootstrap "rows" work, they should appear sequentially on the page and, if I replace the map with text, that is exactly what happens; so, is there something about Bing Maps that breaks this rule. Looking here what I'm doing appears to be correct.
原文:https://stackoverflow.com/questions/42607156
最满意答案
由于@seanizer给出的原因,我们
.classpath
在我们的VCS中检查像.project
,.classpath
和.settings
这样的文件:避免地狱。所以这是我们处理事情的方式:
- 我们使用m2eclipse或maven eclipse插件来获取可以从POM派生的内容
- 我们使用专用的
build-tools
Maven模块来保存我们的文件
checkstyle.xml
由Checkstyle Multimodule配置建议codestyle-eclipse.xml
(Eclipse Formatter配置文件准备导入)codetemplates-eclipse.xml
(准备导入的Eclipse 代码模板 )- 我们将介绍如何使用Wiki中的上述文件设置开发环境
所有这一切都受到Vincent Massol在XWiki上所做的一切的启发(参见他们的Java Code Style页面及其svn的具体例子)。
We do not checkin files like
.project
,.classpath
and.settings
in our VCS for the reasons given by @seanizer: avoiding hell.So here is how we handle things:
- we use m2eclipse or the maven eclipse plugin to derive what can be derived from the POM
- we use a dedicated
build-tools
Maven module to hold files such as our
checkstyle.xml
as suggested by the Checkstyle Multimodule configurationcodestyle-eclipse.xml
(Eclipse Formatter profile ready to import)codetemplates-eclipse.xml
(Eclipse Codes Templates ready to import)- we document how to setup the development environment using the above files in our Wiki
All this is highly inspired by what Vincent Massol is doing at XWiki (see their Java Code Style page and their svn for a concrete example).
相关问答
更多-
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
由于Moodle已经使用git进行核心开发,这肯定是在多个开发人员之间协调代码的最佳选择。 有关更多详细信息,请参阅https://docs.moodle.org/dev/Git_for_developers (尽管这更侧重于为Moodle核心提供补丁)。 共享数据更加困难,但根据我的经验,每个开发人员通常可以使用他们自己的Moodle安装,并使用集中安装进行测试(并确保每个开发人员使用xmldb编辑器来定义install.xml + upgrade)。 php步骤,以便其他开发人员可以从中获取最新代码,并 ...
-
我发现了一种适用于我的解决方案,但我不确定它是否是一个好的或优雅的解决方案。 请随时给我反馈或意见。 假设我们有一个拥有信标的开发者A ,并且A想要将他的信标分享给第三方开发者B。 他使用Beacon Tool iOS应用程序注册了他的信标并将其分配给他的Google API项目。 要让B使用A的信标,请执行以下步骤: (1) B必须创建一个新的Google API项目( https://console.developers.google.com/apis )。 B必须为他的项目激活“Google Prox ...
-
这绝对是源代码控制的工作,正如其他答案所提到的,Git或SVN可能是您的最佳选择。 Git是较新的,并且正在获得大量人气(可能要归功于GitHub)。 GitHub非常容易学习,甚至可以使用新的GitHub for Windows客户端为您完成许多更困难的任务。 他们还有一个GitHub for Mac客户端 。 一旦您更熟悉该工具,您就可以获得eclipse的EGit插件,这样您就可以直接从IDE控制源代码控制。 此外,GitHub还创建了一个用于学习git的在线交互式教程 。 至于清除类文件(以及来自e ...
-
Maven的重点是让它管理应用程序的依赖关系和构建过程,而不是IDE。 因此,如果你认为你需要用你的IDE做它,你可能使用Maven做错了。 I solved it with the m2e plugin. It allows you to import git projects as maven projects and automatically organizes them in working sets and projects according to maven modules.
-
如果您将代码签名身份设置为iPhone Developer (Automatic selection)而不是iPhone Developer: Joe McDoe ,那么它将自动在本地钥匙串中找到合适的签名身份,并且它应该适用于您团队中的每个开发人员。 If you set the code signing identity to iPhone Developer (Automatic selection) instead of iPhone Developer: Joe McDoe, then it wi ...
-
你如何设置一个maven java项目,也可以使用groovy?(How do you setup a maven java project that can also make use of groovy?)[2022-09-18]
你试过gmaven插件吗? Have you tried the gmaven plugin? -
我认为Maven GWT插件可以帮到你! I think the Maven GWT Plugin could help you!
-
如何为多个开发人员设置Java maven项目以便轻松使用(How to setup a Java maven project for multiple developers to use easily)[2022-07-17]
由于@seanizer给出的原因,我们.classpath在我们的VCS中检查像.project , .classpath和.settings这样的文件:避免地狱。 所以这是我们处理事情的方式: 我们使用m2eclipse或maven eclipse插件来获取可以从POM派生的内容 我们使用专用的build-tools Maven模块来保存我们的文件 checkstyle.xml由Checkstyle Multimodule配置建议 codestyle-eclipse.xml (Eclipse Format ... -
构建多个Maven项目(Build multiple Maven projects)[2021-12-18]
我们如何设置Maven使用本地版本的项目B来构建,而不是从Nexus获取人工制品? 您可以为每个存储库的快照工件设置updatePolicy 。 实际上, 默认情况下 ,Maven每天只检查一次SNAPSHOT更新。 因此,如果您在本地构建B版本,即使将新的SNAPSHOT部署到您的Nexus,您也应该可以使用它来构建A一段时间。 如果这不符合您的需求,您可以更改此政策。 您也可以离线构建(使用-o选项)。 PS:AFAIK,默认情况下,Maven 3.x中将禁用自动更新,您必须明确要求更新(使用-U选项) ...