fix for visitor view
这个提交包含在:
父节点
d1cb47c47d
当前提交
6f6a8d8f69
共有 1 个文件被更改,包括 16 次插入 和 10 次删除
|
|
@ -38,17 +38,23 @@ function initmap(ShowGrid='No', MapTag='map', options={}) {
|
|||
var layerControl = new L.Control.Layers(null, { 'Gridsquares': maidenhead = L.maidenhead() }).addTo(map);
|
||||
if(ShowGrid == "Yes") { maidenhead.addTo(map); }
|
||||
|
||||
//console.log(_url_qso);
|
||||
// get map custon infos //
|
||||
$.ajax({
|
||||
url: base_url+'index.php/user_options/get_map_custom', type: 'GET', dataType: 'json',
|
||||
error: function() { console.log('[ERROR] ajax get_map_custom() function return error.'); },
|
||||
success: function(json_mapinfo) {
|
||||
if (typeof json_mapinfo.qso !== "undefined") { iconsList = json_mapinfo; }
|
||||
if(json_mapinfo.gridsquare_show == "1") { maidenhead.addTo(map); }
|
||||
//console.log(_url_qso);
|
||||
askForPlots(_url_qso, options);
|
||||
}
|
||||
});
|
||||
var _visitor = (typeof visitor==="undefined")?false:visitor;
|
||||
if (_visitor) {
|
||||
askForPlots(_url_qso, options);
|
||||
} else {
|
||||
$.ajax({
|
||||
url: base_url+'index.php/user_options/get_map_custom', type: 'GET', dataType: 'json',
|
||||
error: function() { askForPlots(_url_qso, options); console.log('[ERROR] ajax get_map_custom() function return error.'); },
|
||||
success: function(json_mapinfo) {
|
||||
if (typeof json_mapinfo.qso !== "undefined") { iconsList = json_mapinfo; }
|
||||
if(json_mapinfo.gridsquare_show == "1") { maidenhead.addTo(map); }
|
||||
askForPlots(_url_qso, options);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function askForPlots(_url_qso, options={}) {
|
||||
|
|
|
|||
正在加载…
在新工单中引用