Skip to content

初次载入页面不全 #7

@Ricardo2001ZG

Description

@Ricardo2001ZG

此项目中的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就好了。实在有懒人倒是可以联系我)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions