Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Map.CloudStorageLayer.setMaxZoom
Stay organized with collections
Save and categorize content based on your preferences.
Sets the maximum zoom level for tiles. When the user zooms in beyond this level, the parent tile at this level will be fetched and zoomed on the client.
Returns this map layer.
Usage | Returns | CloudStorageLayer.setMaxZoom(maxZoom) | ui.Map.CloudStorageLayer |
Argument | Type | Details | this: ui.map.cloudstoragelayer | ui.Map.CloudStorageLayer | The ui.Map.CloudStorageLayer instance. |
maxZoom | Number | The maximum zoom level with tiles. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eDefines the highest zoom level where tiles are displayed, beyond which the parent tile is fetched and zoomed on the client-side.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetMaxZoom\u003c/code\u003e method allows setting this maximum zoom level for a CloudStorageLayer and returns the layer instance for chaining.\u003c/p\u003e\n"]]],["The `setMaxZoom` method configures the maximum zoom level for a `CloudStorageLayer`. When a user zooms beyond this `maxZoom` number, the parent tile at the specified level is fetched and zoomed client-side. This method, applied to a `ui.Map.CloudStorageLayer` instance, accepts a `Number` argument (`maxZoom`) defining the limit and returns the modified `ui.Map.CloudStorageLayer`.\n"],null,["# ui.Map.CloudStorageLayer.setMaxZoom\n\n\u003cbr /\u003e\n\nSets the maximum zoom level for tiles. When the user zooms in beyond this level, the parent tile at this level will be fetched and zoomed on the client.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|-----------------------------------------|--------------------------|\n| CloudStorageLayer.setMaxZoom`(maxZoom)` | ui.Map.CloudStorageLayer |\n\n| Argument | Type | Details |\n|----------------------------------|--------------------------|----------------------------------------|\n| this: `ui.map.cloudstoragelayer` | ui.Map.CloudStorageLayer | The ui.Map.CloudStorageLayer instance. |\n| `maxZoom` | Number | The maximum zoom level with tiles. |"]]