{"id":6148,"date":"2023-01-02T09:57:51","date_gmt":"2023-01-02T06:27:51","guid":{"rendered":"https:\/\/en.geobox.ir\/developers\/?post_type=docs&#038;p=6148"},"modified":"2023-01-26T13:47:58","modified_gmt":"2023-01-26T10:17:58","slug":"working-with-tileset","status":"publish","type":"docs","link":"https:\/\/en.geobox.ir\/developers\/docs\/tileset\/working-with-tileset\/","title":{"rendered":"Tilesets"},"content":{"rendered":"<h2>Methods:<\/h2>\n<h3>createTileset(options)<\/h3>\n<p>Creates new tileset. This function is an asynchronous function.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>options (Object)<\/p>\n<table class=\"table table--fixed table--compact\" style=\"width: 82.5238%; height: 316px;\">\n<thead>\n<tr class=\"bg-gray-faint\" style=\"height: 26px;\">\n<th style=\"text-align: left; height: 26px; width: 22.9905%;\">Name<\/th>\n<th style=\"text-align: left; height: 26px; width: 103.063%;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.name<\/div>\n<div>String<\/div>\n<\/td>\n<td style=\"height: 26px; width: 103.063%; text-align: left;\">Name of new tileset.<\/td>\n<\/tr>\n<tr style=\"height: 53px;\">\n<td style=\"height: 53px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.display_name<\/div>\n<div>String?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 103.063%; text-align: left;\">Display name of new tileset. This parameter is helpful in identifying tileset easily.<\/td>\n<\/tr>\n<tr style=\"height: 53px;\">\n<td style=\"height: 53px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.description<code class=\"language-json\"><\/code><\/div>\n<div>String?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 103.063%; text-align: left;\">Description of tileset.<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.min_zoom<\/div>\n<div>Number?<\/div>\n<\/td>\n<td style=\"height: 26px; width: 103.063%; text-align: left;\">Minimum zoom can be a number between 0 and 22.<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.max_zoom<\/div>\n<div>Number?<\/div>\n<\/td>\n<td style=\"height: 26px; width: 103.063%; text-align: left;\">Maximum zoom can be a number between 0 and 22.<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.layers<\/div>\n<div>Array<\/div>\n<\/td>\n<td style=\"height: 26px; width: 103.063%; text-align: left;\">Array of layers that you want to add to tileset. This array contains objects with layer_type and layer_uuid.<\/td>\n<\/tr>\n<tr style=\"height: 53px;\">\n<td style=\"height: 53px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.user_id<\/div>\n<div>Number?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 103.063%; text-align: left;\">If the admin wants to create tileset for a certain user, this parameter determines which user is the target user.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\"><a href=\"https:\/\/www.geobox.ir\/\">Tileset<\/a>: Returns itself to allow for method chaining.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const newTileset = await Server.createTileset({\r\n   'name': 'string',\r\n   'display_name': 'string',\r\n   'description': 'string',\r\n   'min_zoom': 0,\r\n   'max_zoom': 22,\r\n   'layers': [\r\n      {'layer_type': 'vector',\r\n       'layer_uuid': '4f9f3e4b-4dc1-469b-83ab-00ae00f02581'\r\n      },\r\n      {'layer_type': 'view',\r\n       'layer_uuid': '4f9f3e4b-4dc1-469b-83ab-00ae00f02581'\r\n      }\r\n   ],\r\n   'user_id': 0\r\n});<\/pre>\n<h3>updateTileset(tileset_uuid, options)<\/h3>\n<p>Updates the existing tileset. This function is an asynchronous function.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>tileset_uuid is the available tileset uuid.<\/p>\n<p>options (Object)<\/p>\n<table class=\"table table--fixed table--compact\" style=\"width: 82.5238%; height: 316px;\">\n<thead>\n<tr class=\"bg-gray-faint\" style=\"height: 26px;\">\n<th style=\"text-align: left; height: 26px; width: 22.9905%;\">Name<\/th>\n<th style=\"text-align: left; height: 26px; width: 103.063%;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.name<\/div>\n<div>String<\/div>\n<\/td>\n<td style=\"height: 26px; width: 103.063%; text-align: left;\">Name of tileset.<\/td>\n<\/tr>\n<tr style=\"height: 53px;\">\n<td style=\"height: 53px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.display_name<\/div>\n<div>String?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 103.063%; text-align: left;\">Display name of tileset. This parameter is helpful in identifying tileset easily.<\/td>\n<\/tr>\n<tr style=\"height: 53px;\">\n<td style=\"height: 53px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.description<code class=\"language-json\"><\/code><\/div>\n<div>String?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 103.063%; text-align: left;\">Description of tileset.<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.min_zoom<\/div>\n<div>Number?<\/div>\n<\/td>\n<td style=\"height: 26px; width: 103.063%; text-align: left;\">Minimum zoom can be a number between 0 and 22.<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.max_zoom<\/div>\n<div>Number?<\/div>\n<\/td>\n<td style=\"height: 26px; width: 103.063%; text-align: left;\">Maximum zoom can be a number between 0 and 22.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\"><a href=\"https:\/\/www.geobox.ir\/\">Tileset<\/a>: Returns itself to allow for method chaining.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const tileset = await Server.updateTileset({\r\n   'name': 'string',\r\n   'display_name': 'string',\r\n   'description': 'string',\r\n   'min_zoom': 0,\r\n   'max_zoom': 22\r\n});<\/pre>\n<h3>getTileset(tileset_uuid)<\/h3>\n<p>Returns the desired existing tileset. This function is an asynchronous function.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>tileset_uuid is the available tileset uuid.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p><a href=\"https:\/\/www.geobox.ir\/\">Tileset<\/a>: Returns itself to allow for method chaining.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const tileset = await Server.getTileset('4f9f3e4b-4dc1-469b-83ab-00ae00f02581');<\/pre>\n<h3>getTilesetsByIds(options)<\/h3>\n<p>Returns the desired existing tilesets. This function is an asynchronous function.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>options (Object)<\/p>\n<table class=\"table table--fixed table--compact\" style=\"width: 82.5238%; height: 97px;\">\n<thead>\n<tr class=\"bg-gray-faint\" style=\"height: 26px;\">\n<th style=\"text-align: left; height: 26px; width: 22.9905%;\">Name<\/th>\n<th style=\"text-align: left; height: 26px; width: 103.063%;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 26px;\">\n<td style=\"height: 18px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.ids<\/div>\n<div>Number | Array<\/div>\n<\/td>\n<td style=\"height: 18px; width: 103.063%; text-align: left;\">Ids of tilesets. If you want a single tileset, insert id as a string.<\/td>\n<\/tr>\n<tr style=\"height: 53px;\">\n<td style=\"height: 53px; width: 22.9905%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.user_id<\/div>\n<div>Number?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 103.063%; text-align: left;\">If the admin wants to fetch tilesets of a certain user, this parameter determines which user is the target user.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">Array: Returns an array of tilesets.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const tilesets = await Server.getTilesetsByIds({\r\n   'ids': [25,125],\r\n   'user_id' :0\r\n});<\/pre>\n<h3>getTilesetByName(name, user_id)<\/h3>\n<p>Returns the desired existing tileset. This function is an asynchronous function.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>name is the available tileset name.<\/p>\n<p>user_id is the id of the user that tileset belongs to.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\"><a href=\"https:\/\/www.geobox.ir\/\">Tileset<\/a>: Returns itself to allow for method chaining.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const tileset = await Server.getTilesetByName('city',2);<\/pre>\n<h3>getTilesets(options)<\/h3>\n<p>Returns the desired existing tilesets. This function is an asynchronous function.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>options (Object)<\/p>\n<table class=\"table table--fixed table--compact\" style=\"width: 82.5964%; height: 493px;\">\n<thead>\n<tr class=\"bg-gray-faint\" style=\"height: 26px;\">\n<th style=\"text-align: left; height: 48px; width: 22.8381%;\">Name<\/th>\n<th style=\"text-align: left; height: 48px; width: 102.491%;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.<span style=\"font-family: inherit; font-size: inherit;\">f<\/span><\/div>\n<div>String<\/div>\n<div>defult: &#8216;json&#8217;<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">Output format. Choices are: \u2018json\u2019 | \u2018html\u2019<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.<span style=\"font-family: inherit; font-size: inherit;\">q<\/span><\/div>\n<div>String?<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">Query filter based on <a href=\"https:\/\/portal.ogc.org\/files\/96288\" rel=\"noopener noreferrer\">OGC CQL standard<\/a>.<br \/>\ne.g. &#8220;field1 LIKE &#8216;%GIS%&#8217; AND created_at &gt; &#8216;2021-01-01&#8242;&#8221;<\/td>\n<\/tr>\n<tr style=\"height: 79px;\">\n<td style=\"height: 79px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.<span style=\"font-family: inherit; font-size: inherit;\">search<\/span><\/div>\n<div>String?<\/div>\n<\/div>\n<\/td>\n<td style=\"height: 79px; width: 102.491%; text-align: left;\">Search term for keyword-based searching among search_fields or all textual fields if search_fields does not have value.<br \/>\nNOTE: if q param is defined this param will be ignored.<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.search_fields<\/div>\n<div>String?<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">Comma separated list of fields for searching<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.<span style=\"font-family: inherit; font-size: inherit;\">order_by<\/span><\/div>\n<div>String?<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">Comma seperated list of fields for sorting results [field1 A|D, field2 A|D, \u2026]. e.g. name A, type D<br \/>\nNOTE: &#8220;A&#8221; denotes ascending order and &#8220;D&#8221; denotes descending order.<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.<span style=\"font-family: inherit; font-size: inherit;\">skip<\/span><\/div>\n<div>\n<div>Number?<\/div>\n<div>Default: 0<\/div>\n<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">Number of skipped tilesets.<\/td>\n<\/tr>\n<tr style=\"height: 79px;\">\n<td style=\"height: 79px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.<span style=\"font-family: inherit; font-size: inherit;\">limit<\/span><\/div>\n<div>\n<div>Number?<\/div>\n<div>Default:10<\/div>\n<\/div>\n<\/div>\n<\/td>\n<td style=\"height: 79px; width: 102.491%; text-align: left;\">Maximum number for result tilesets.<\/td>\n<\/tr>\n<tr style=\"height: 53px;\">\n<td style=\"height: 53px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.<span style=\"font-family: inherit; font-size: inherit;\">user_id<\/span><\/div>\n<div>Number?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 102.491%; text-align: left;\">If the admin wants to fetch tilesets of a certain user, this parameter determines which user is the target user.<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.<span style=\"font-family: inherit; font-size: inherit;\">shared<\/span><\/div>\n<div>Bolean<\/div>\n<div>default: false<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">If true, returns only the tilesets that are shared.<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.<span style=\"font-family: inherit; font-size: inherit;\">page<\/span><\/div>\n<div>Number?<\/div>\n<div>Default:1<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">The minimum number of pages is 1.<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.<span style=\"font-family: inherit; font-size: inherit;\">page_size<\/span><\/div>\n<div>\n<div>Number?<\/div>\n<div>Default:10<\/div>\n<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">The minimum number of maps on each page is 1.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p>Array: Returns an array of tilesets.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const tilesets = await Server.getTilesets({q:`name = 'string'`,user_id :0});<\/pre>\n<h3>deleteTileset(tileset_uuid)<\/h3>\n<p>Deletes the desired existing tileset.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>tileset_uuid is the available tileset uuid.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p>String: Returns a message that shows deleting was successful or not. Null message means deleting was successful.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const result = await Server.deleteTileset('4f9f3e4b-4dc1-469b-83ab-00ae00f02581');<\/pre>\n<h3>seedCacheTileset(tileset_uuid, options)<\/h3>\n<p>Generates and stores tiles for the existing tileset. See <a href=\"https:\/\/www.geobox.ir\/doc\/v1\/%d8%aa%d8%a7%db%8c%d9%84%d8%b3%d8%aa-%d9%87%d8%a7-tilesets\/%d9%85%d8%af%db%8c%d8%b1%db%8c%d8%aa-%d8%aa%d8%a7%db%8c%d9%84%d8%b3%d8%aa\/#3-toc-title\">generating and storing tiles<\/a>\u00a0for more guidance.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>tileset_uuid is the available tileset uuid.<\/p>\n<p>options (Object)<\/p>\n<table class=\"table table--fixed table--compact\" style=\"width: 82.5964%; height: 316px;\">\n<thead>\n<tr class=\"bg-gray-faint\" style=\"height: 26px;\">\n<th style=\"text-align: left; height: 26px; width: 22.8381%;\">Name<\/th>\n<th style=\"text-align: left; height: 26px; width: 102.491%;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.from_zoom<\/div>\n<div>Number<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">from_zoom parameter is between 0 and 22.<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.to_zoom<\/div>\n<div>Number<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">to_zoom parameter is between 0 and 22.<\/td>\n<\/tr>\n<tr style=\"height: 79px;\">\n<td style=\"height: 79px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.<span style=\"font-family: inherit; font-size: inherit;\">extent<\/span><\/div>\n<div>Array<\/div>\n<\/div>\n<\/td>\n<td style=\"height: 79px; width: 102.491%; text-align: left;\"><span class=\"enlighter-s0\">[southwest x, southwest y,\u00a0 northeast x, northeast y]<\/span><\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"height: 26px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.workers<\/div>\n<div>Number<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">Number of cpu cores.<\/td>\n<\/tr>\n<tr style=\"height: 53px;\">\n<td style=\"height: 53px; width: 22.8381%; text-align: left;\">\n<div class=\"txt-mono txt-bold txt-break-word\">options.<span style=\"font-family: inherit; font-size: inherit;\">user_id<\/span><\/div>\n<div>Number?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 102.491%; text-align: left;\">If the admin wants to build cache for a tileset of a certain user, this parameter determines which user is the target user.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p>Object: Returns task id to manage task.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const taskId = await Server.seedCacheTileset('4f9f3e4b-4dc1-469b-83ab-00ae00f02581',{\r\n   'from_zoom': 0,\r\n   'to_zoom': 2,\r\n   'extent': [51, 35, 52, 36],\r\n   'workers': 1,\r\n   'user_id': 2\r\n})<\/pre>\n<h3>getCacheSizeTileset(tileset_uuid)<\/h3>\n<p>Returns the size of tiles generated and stored for tileset in bytes.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>tileset_uuid is the available tileset uuid.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p>Number: Returns tiles size in byte.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const tilesSize = await Server.getCacheSizeTileset('4f9f3e4b-4dc1-469b-83ab-00ae00f02581');<\/pre>\n<h3>clearCacheTileset(tileset_uuid)<\/h3>\n<p>Removes generated tiles for the desired tileset.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>tileset_uuid is the available tileset uuid.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p>String: Returns a message that shows clearing was successful or not. Null message means clearing was successful.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const result = await Server.clearCacheTileset('4f9f3e4b-4dc1-469b-83ab-00ae00f02581');<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Methods: createTileset(options) Creates new tileset. This function is an asynchronous function. Parameters: options (Object) Name Description options.name String Name of new tileset. options.display_name String? Display name of new tileset. This parameter is helpful in identifying tileset easily. options.description String? Description of tileset. options.min_zoom Number? Minimum zoom can be a number between 0 and 22. options.max_zoom [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[70],"doc_tag":[],"class_list":["post-6148","docs","type-docs","status-publish","hentry","doc_category-tileset"],"_links":{"self":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/6148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/comments?post=6148"}],"version-history":[{"count":16,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/6148\/revisions"}],"predecessor-version":[{"id":6679,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/6148\/revisions\/6679"}],"wp:attachment":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/media?parent=6148"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/doc_category?post=6148"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/doc_tag?post=6148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}