-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Description
此项目中的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就好了。实在有懒人倒是可以联系我)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels