Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初次载入页面不全 #7

Open
Ricardo2001ZG opened this issue Sep 23, 2018 · 0 comments
Open

初次载入页面不全 #7

Ricardo2001ZG opened this issue Sep 23, 2018 · 0 comments

Comments

@Ricardo2001ZG
Copy link

此项目中的map.html在演示实例初次载入时会出现地图载入不全的情况。
修正方式为
将"$(function () {
var mapcon = document.documentElement.clientHeight + 'px';
$("#mainmap").css('height', mapcon);
});
$(window).resize(function () {
var rmapcon = document.documentElement.clientHeight + 'px';
$("#mainmap").css('height', rmapcon);
});"
改为
"$(window).height(function () {
var mapcon = document.documentElement.clientHeight + 'px';
$("#mainmap").css('height', mapcon);
});
$(window).resize(function () {
var rmapcon = document.documentElement.clientHeight + 'px';
$("#mainmap").css('height', rmapcon);
});"

以及存入数据库后地图迁移过于麻烦,建议其他开发者可以利用该项目使用wget循环遍历数据库(代码太简单了就不用我写了吧,一个from读取sql里面的坐标,导出成文件后写个小程序处理一下生成sh就好了。实在有懒人倒是可以联系我)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant