如何隐藏 Fusion Table 的 table id,以便用户无法在 Google 地图上看到 fusion table 层的来源?
How do I hide the table id of a Fusion Table so the user cannot see the source of the fusion table layer on a Google Map?
我正在使用 Fusion Tables 向我的 Google 地图添加一个 FusionTablesLayer 以显示一些标记。我不想让用户知道数据来自哪里(即:Fusion Table Id)。
如何向用户隐藏 table ID?目前它位于 JavaScript:
var tableId = "not_hidden_from_user";
var layer = new google.maps.FusionTablesLayer({
map: map,
heatmap: { enabled: false },
query: {
select: "col12",
from: tableId,
where: ""
}
});
我知道 Google 需要访问 Fusion Table,但我希望有一种方法可以防止用户获取源代码。目标是过滤 Fusion Table 并仅向特定用户显示特定标记。我正在使用 ASP.Net.
有时更简单的解决方案是最好的。与其绞尽脑汁寻找隐藏 table 的方法,我建议考虑混淆整个 javascript 文件。我正在使用此服务:https://javascriptobfuscator.com 没有任何问题。但你也可以测试:
http://www.danstools.com/javascript-obfuscate/
http://javascript2img.com/
我正在使用 Fusion Tables 向我的 Google 地图添加一个 FusionTablesLayer 以显示一些标记。我不想让用户知道数据来自哪里(即:Fusion Table Id)。
如何向用户隐藏 table ID?目前它位于 JavaScript:
var tableId = "not_hidden_from_user";
var layer = new google.maps.FusionTablesLayer({
map: map,
heatmap: { enabled: false },
query: {
select: "col12",
from: tableId,
where: ""
}
});
我知道 Google 需要访问 Fusion Table,但我希望有一种方法可以防止用户获取源代码。目标是过滤 Fusion Table 并仅向特定用户显示特定标记。我正在使用 ASP.Net.
有时更简单的解决方案是最好的。与其绞尽脑汁寻找隐藏 table 的方法,我建议考虑混淆整个 javascript 文件。我正在使用此服务:https://javascriptobfuscator.com 没有任何问题。但你也可以测试:
http://www.danstools.com/javascript-obfuscate/ http://javascript2img.com/