我试图在Google Map中的某个地方留下印记.但是我觉得谷歌地图的标记不准确.
例如,让我们尝试在Google Map中使用Marker.基于谷歌地球,白宫位于38°53'51.54"N和77°2'8.40"W.
我把它转换为纬度38.535154和经度-77.2840
所以我创建了这段代码:
var company = new google.maps.LatLng(38.535154, -77.2840);
var marker;
var map;
function initialize() {
var latlng = new google.maps.LatLng(38.535154, -77.2840);
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
marker = new google.maps.Marker({
map:map,
draggable:true,
animation: google.maps.Animation.DROP,
position: company
});
google.maps.event.addListener(marker, 'click', toggleBounce);
}
Run Code Online (Sandbox Code Playgroud)
但是,在我打开浏览器后,我的标记位于华盛顿西南部.

所以我的问题是:
是谷歌地图经纬度是有点过(不同步与谷歌地球),或者是有什么错我的转换或我的代码?
如果说Google Earth Long&Lat是错误的,那么有没有办法直接从Google Map了解经度和纬度?
在iPod Touch下,当我点击蓝色按钮时,图像将根据图像向右/向左滚动.
这种技术叫做什么,是否可以使用纯HTML5实现?

我在Spring中使用freemarker.
这是我配置我的freemarker的方式:
<bean id="freemarkerConfiguration" class="org.springframework.ui.freemarker.FreeMarkerConfigurationFactoryBean">
<property name="templateLoaderPath" value="classpath:/META-INF/templates"/>
</bean>
Run Code Online (Sandbox Code Playgroud)
这个配置实际上工作正常,我能够使用模板等生成我的报告.
但是在Weblogic中,我总是得到这个例外:
15 Sep 2012 01:03:02,060 DEBUG DefaultListableBeanFactory.doCreateBean:504 - Eagerly caching bean 'freemarkerConfiguration' to allow for resolving potential circular references
15 Sep 2012 01:03:02,074 DEBUG DefaultListableBeanFactory.invokeInitMethods:1498 - Invoking afterPropertiesSet() on bean with name 'freemarkerConfiguration'
15 Sep 2012 01:03:02,228 DEBUG FreeMarkerConfigurationFactoryBean.getTemplateLoaderForPath:360 - Cannot resolve template loader path [classpath:/META-INF/templates] to [java.io.File]: using SpringTemplateLoader as fallback
java.io.FileNotFoundException: class path resource [META-INF/templates] cannot be resolved to absolute file path because it does not reside in …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 Mvc 和 AngularJs 创建一个 Spring Boot。我修改了我的应用程序的视图解析器,所以我可以让我的应用程序在“WEB-INF/pages/”文件夹中查看我的静态 html 文件。现在在 html 文件中,我使用 webjars 依赖声明了我的 AngularJs 库的来源
<script src="webjars/angularjs/1.5.5/angular.min.js"></script>
Run Code Online (Sandbox Code Playgroud)
我知道为了完成这项工作,我必须在应用程序的 ResourceHandlerRegistry 上声明 webjars libray 的类路径,因此在我的配置文件中我只添加了这行代码
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
}
Run Code Online (Sandbox Code Playgroud)
添加这一行后,我的代码以某种方式工作,但让我好奇的是关于我的 html 文件中的这一行
<script src="resources/js/angular/app.js"></script>
Run Code Online (Sandbox Code Playgroud)
我注意到在 Spring MVC 应用程序上,为了让 Spring 检测 webapp 资源文件夹下的 Javascript 文件,我们必须ResourceHandlerRegistry像这样声明该文件夹
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
}
Run Code Online (Sandbox Code Playgroud)
但是我还没有在 Spring Boot 上声明我的 webapp 的资源文件夹,ResourceHandlerRegistry但应用程序仍然可以看到我的 app.js 文件并且我的 AngularJs 代码仍然有效。这是我的应用程序的文件结构
src
|--main
|--java
|--resources
|--webapp
|--resources
|--js
|--angular
|--app.js
|--WEB-INF
|--index.html
如何创建好的坏词聊天过滤器?例如,让用户不要输入Poop并向他们发送警告.
然而,它也应该过滤pooopppp,P00p,Po0p,P0o0o0op,(或他们尝试使用的任何技巧)等.
java ×2
bukkit ×1
classpath ×1
filter ×1
freemarker ×1
html ×1
html5-video ×1
javascript ×1
profanity ×1
scroll ×1
slider ×1
spring ×1
spring-boot ×1
spring-mvc ×1