0

探索 Google Code Playground ( http://code.google.com/apis/ajax/playground/#adding_a_side_database )中的 addSideDatabase 方法,我尝试用我的 Google Maps Engine Lite 地图 ( https://mapsengine .google.com/map/edit?mid=zaet3r0aK3bg.kEC1j3RZYDKw)。它没有用。不支持 Google Maps Engine Lite 吗?我在文档中找不到任何方法。此外,为什么既没有调用 sideDatabaseSuccess 也没有调用 sideDatabaseFail 回调?

4

1 回答 1

0

我不确定是否支持 Google Maps Engine Lite,我认为它可能部分取代了允许此类连接的 Google Earth Builder 平台。

在任何情况下,通常要使用任何专业/企业功能,您必须确保在加载实际的 Earth API 时传递您的客户端 ID。例如

var params = {"other_params":"client=CLIENTID&sensor=false"};
google.load("earth", "1", params);

请参阅:https ://developers.google.com/earth/documentation/#sidedatabase

另请注意,如果您的地图是私有的,您需要在连接时提供身份验证凭据。

于 2013-08-18T10:34:09.073 回答