ee.ImageCollection.getMapId
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Eine imperative Funktion, die eine Karten-ID über einen synchronen AJAX-Aufruf zurückgibt.
Dabei wird die Sammlung zu einem einzelnen Bild zusammengefügt und eine Karten-ID zurückgegeben, die sich für die Erstellung eines Google Maps-Overlays eignet.
Gibt eine Karten-ID und ein optionales Token zurück, die an ee.data.getTileUrl oder ui.Map.addLayer übergeben werden können. Nicht definiert, wenn ein Callback angegeben wurde.
Nutzung | Ausgabe |
---|
ImageCollection.getMapId(visParams, callback) | MapId|Object |
Argument | Typ | Details |
---|
So gehts: imagecollection | ImageCollection | Die ImageCollection-Instanz. |
visParams | Objekt, optional | Die Visualisierungsparameter. |
callback | Funktion (optional) | Ein asynchroner Callback. Wenn nicht angegeben, erfolgt der Aufruf synchron. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003eRetrieves a map ID for visualizing an ImageCollection as a single mosaicked image.\u003c/p\u003e\n"],["\u003cp\u003eThis ID can be used to create Google Maps overlays or retrieve tile URLs for the mosaic.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetMapId\u003c/code\u003e can be called synchronously or asynchronously by omitting or providing a callback function, respectively.\u003c/p\u003e\n"],["\u003cp\u003eVisualization parameters can be customized using the optional \u003ccode\u003evisParams\u003c/code\u003e argument.\u003c/p\u003e\n"]]],["This document details the `getMapId` function for ImageCollection, which returns a map ID for creating Google Maps overlays. It mosaics an ImageCollection into a single image. The function can be called synchronously or asynchronously using an optional callback. It accepts visualization parameters (`visParams`) and returns a MapId or an object containing the map ID and token, which can be used with `ee.data.getTileUrl` or `ui.Map.addLayer`. The return will be `undefined` if a callback is specified.\n"],null,["# ee.ImageCollection.getMapId\n\n\u003cbr /\u003e\n\nAn imperative function that returns a map ID via a synchronous AJAX call.\n\n\u003cbr /\u003e\n\nThis mosaics the collection to a single image and return a map ID suitable for building a Google Maps overlay.\n\nReturns returns a map ID and optional token, which may be passed to ee.data.getTileUrl or ui.Map.addLayer. Undefined if a callback was specified.\n\n| Usage | Returns |\n|----------------------------------------------------------|---------------|\n| ImageCollection.getMapId`(`*visParams* `, `*callback*`)` | MapId\\|Object |\n\n| Argument | Type | Details |\n|-------------------------|--------------------|---------------------------------------------------------------------|\n| this: `imagecollection` | ImageCollection | The ImageCollection instance. |\n| `visParams` | Object, optional | The visualization parameters. |\n| `callback` | Function, optional | An async callback. If not supplied, the call is made synchronously. |"]]