[英]easyLocator doesn't load my spreadsheet
I am using the EasyLocator plugin taking the data from this spreadsheet .我正在使用EasyLocator 插件从这个电子表格中获取数据。
As you can see it has the given format and is shared correctly (it is a copy of the original demo spreadsheet ).如您所见,它具有给定的格式并正确共享(它是原始演示电子表格的副本)。
I can't understand why my map is not loading the locations.我不明白为什么我的地图没有加载位置。
You can check my code at JSFiddle , you can uncomment the original spreadsheet line to check it works.您可以在JSFiddle检查我的代码,您可以取消注释原始电子表格行以检查它是否有效。
$( document ).ready(function() {
$('#locatorList').easyLocator({
spreadsheetId: '1z2ATjK8itbVsyqWsNW3xiTzue7TPJiPm1FKiqccf8K0',
//spreadsheetId: '1GsuoK3XyWJoiie1eq0qrd-2DxRVSQ0Ut7DkGI23Gq0s',
useMarkerCluster: true,
mapType: 'HYBRID'
});
});
I inspect your JSFiddle with Chrome Developer tools, and it seem the grid_id is invalid.我使用 Chrome 开发人员工具检查了您的 JSFiddle,似乎 grid_id 无效。
Update更新
In your code, I changed the spreadSheetId from 1z2ATjK8itbVsyqWsNW3xiTzue7TPJiPm1FKiqccf8K0
to 1GsuoK3XyWJoiie1eq0qrd-2DxRVSQ0Ut7DkGI23Gq0s
, then it worked.在您的代码中,我将 spreadSheetId 从
1z2ATjK8itbVsyqWsNW3xiTzue7TPJiPm1FKiqccf8K0
更改为1GsuoK3XyWJoiie1eq0qrd-2DxRVSQ0Ut7DkGI23Gq0s
,然后它起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.