ee.ImageCollection.getMapId
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک تابع ضروری که شناسه نقشه را از طریق تماس همزمان AJAX برمی گرداند.
این مجموعه را به یک تصویر موزاییک می کند و یک شناسه نقشه مناسب برای ساخت یک پوشش Google Maps را برمی گرداند.
Returns یک شناسه نقشه و کد اختیاری را برمیگرداند که ممکن است به ee.data.getTileUrl یا ui.Map.addLayer ارسال شود. اگر پاسخ تماس مشخص شده باشد، تعریف نشده است.
استفاده | برمی گرداند | ImageCollection. getMapId ( visParams , callback ) | MapId|شیء |
استدلال | تایپ کنید | جزئیات | این: imagecollection | ImageCollection | نمونه ImageCollection. |
visParams | شیء، اختیاری | پارامترهای تجسم |
callback | عملکرد، اختیاری | پاسخ تماس ناهمگام در صورت عدم ارائه، تماس به صورت همزمان انجام می شود. |
،
یک تابع ضروری که شناسه نقشه را از طریق تماس همزمان AJAX برمی گرداند.
این مجموعه را به یک تصویر موزاییک می کند و یک شناسه نقشه مناسب برای ساخت یک پوشش Google Maps را برمی گرداند.
Returns یک شناسه نقشه و کد اختیاری را برمیگرداند که ممکن است به ee.data.getTileUrl یا ui.Map.addLayer ارسال شود. اگر پاسخ تماس مشخص شده باشد، تعریف نشده است.
استفاده | برمی گرداند | ImageCollection. getMapId ( visParams , callback ) | MapId|شیء |
استدلال | تایپ کنید | جزئیات | این: imagecollection | ImageCollection | نمونه ImageCollection. |
visParams | شیء، اختیاری | پارامترهای تجسم |
callback | عملکرد، اختیاری | پاسخ تماس ناهمگام در صورت عدم ارائه، تماس به صورت همزمان انجام می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]