我的地图架构参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
导出的对象:地图
导出的对象表示:将地图导出为 KML/KMZ 文件。
对象以以下格式导出:KMZ
导出的对象具有以下字段:
* 上述字段代表用于解析和提取相关数据导出内容的关键数据字段。导出操作中生成的数据字段因服务和用户操作而异,有些服务或操作不会生成上述每个数据字段。 |
数据字段 * | 字段定义 | 数据字段类型 |
---|
doc.kml | 包含地图数据的 KML 文件。 | 文件 |
图片 | 包含自定义图标图片的目录。 | 目录 |
一个表,表示资源组及其随附导出的对象。资源组 * | 说明 | 导出的对象 |
---|
mymaps.maps | 此资源组包含用户在“我的地图”中创建的地图,包括图层、地图项和媒体内容。 | 地图 |
* 如需获取特定资源组的 OAuth 范围名称,请将“https://www.googleapis.com/auth/dataportability”附加到资源组。例如,“myactivity.search”资源组的 OAuth 范围名称为“https://www.googleapis.com/auth/dataportability.myactivity.search”。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eUsers can export their custom maps created in Google My Maps as KMZ files, containing map data, custom icons, layers, features, and media.\u003c/p\u003e\n"],["\u003cp\u003eExported map data includes a KML file for map data, a directory for custom icon images, and encompasses all layers, features, and media elements within the map.\u003c/p\u003e\n"],["\u003cp\u003eMap data export utilizes the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/dataportability.mymaps.maps\u003c/code\u003e under the \u003ccode\u003emymaps.maps\u003c/code\u003e resource group to access and retrieve user-created map content.\u003c/p\u003e\n"]]],[],null,["# My Maps Schema Reference\n\n| Data Field \\* | Field Definition | Data Field Type |\n|---------------|--------------------------------------------------|-----------------|\n| doc.kml | KML file that contains map data. | file |\n| images | Directory that contains images for custom icons. | directory |\n[Exported Object: Map\nExported Object represents: The map as a KML/KMZ file.\nObject is exported in these formats: KMZ\nExported object has the following fields:]\n\n| Resource Group \\* | Description | Exported Objects |\n|-------------------|-----------------------------------------------------------------------------------------------------------|------------------|\n| mymaps.maps | This resource group contains the maps the user created in My Maps, including layers, features, and media. | Map |\n[A table representing Resource Groups and the objects that are exported with it.]"]]