{"id":6069,"date":"2022-12-31T12:18:26","date_gmt":"2022-12-31T08:48:26","guid":{"rendered":"https:\/\/en.geobox.ir\/developers\/?post_type=docs&#038;p=6069"},"modified":"2023-01-19T14:32:03","modified_gmt":"2023-01-19T11:02:03","slug":"map-2","status":"publish","type":"docs","link":"https:\/\/en.geobox.ir\/developers\/docs\/map-geobox-api-for-javascript\/map-2\/","title":{"rendered":"Maps"},"content":{"rendered":"<h2>Methods:<\/h2>\n<h3>createMap(options)<\/h3>\n<p>Creates a new map. 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.8381%;\">Name<\/th>\n<th style=\"text-align: left; height: 26px; width: 103.215%;\">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.name<\/div>\n<div>String<\/div>\n<\/td>\n<td style=\"height: 26px; width: 103.215%; text-align: left;\">Name of new map.<\/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.display_name<\/div>\n<div>String?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 103.215%; text-align: left;\">Display name of new map. This parameter is helpful in identifying maps easily.<\/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.description<code class=\"language-json\"><\/code><\/div>\n<div>String?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 103.215%; text-align: left;\">Description of map.<\/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.user_id<\/div>\n<div>Number?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 103.215%; text-align: left;\">If the admin wants to create a new map for a certain user, this parameter determines which user is the target user.<\/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.extent<\/div>\n<div>Array?<\/div>\n<\/div>\n<\/td>\n<td style=\"height: 79px; width: 103.215%; text-align: left;\">[[&#8216;south west&#8217;][&#8216;lng&#8217;], [&#8216;south west&#8217;][&#8216;lat&#8217;], [&#8216;north east&#8217;][&#8216;lng&#8217;],[&#8216;north east&#8217;][&#8216;lat&#8217;]]<\/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.thumbnail<\/div>\n<div>String?<\/div>\n<\/div>\n<\/td>\n<td style=\"height: 79px; width: 103.215%; text-align: left;\">Base64 image URL.<\/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.style<\/div>\n<div>Object?<\/div>\n<\/div>\n<\/td>\n<td style=\"height: 79px; width: 103.215%; text-align: left;\">{ version: &lt;&#8220;version number here&#8221;&gt;, sources: {}, layers: []}<\/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><a href=\"https:\/\/www.geobox.ir\/\">Map<\/a>:\u00a0Returns itself to allow for method chaining.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const newMap = await Server.createMap({\r\n   'name': 'string',\r\n   'display_name' : 'string',\r\n   'user_id' : 0,\r\n   'extent': [51, 35, 52,36],\r\n   'thumbnail': 'string',\r\n   'style': {version: 0, sources: {}, layers: []}\r\n});<\/pre>\n<h3>updateMap(map_uuid, options)<\/h3>\n<p>Updates the existing map. This function is an asynchronous function.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>map_uuid is the available map uuid.<\/p>\n<p>options (Object)<\/p>\n<table class=\"table table--fixed table--compact\" style=\"width: 82.5964%; height: 395px;\">\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.name<\/div>\n<div>String?<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">Name of map.<\/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.display_name<\/div>\n<div>String?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 102.491%; text-align: left;\">Display name of map.<\/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.description<code class=\"language-json\"><\/code><\/div>\n<div>String?<\/div>\n<\/td>\n<td style=\"height: 53px; width: 103.215%; text-align: left;\">Description of map.<\/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.extent<\/div>\n<div>Array?<\/div>\n<\/div>\n<\/td>\n<td style=\"height: 79px; width: 102.491%; text-align: left;\">[[&#8216;south west&#8217;][&#8216;lng&#8217;], [&#8216;south west&#8217;][&#8216;lat&#8217;], [&#8216;north east&#8217;][&#8216;lng&#8217;],[&#8216;north east&#8217;][&#8216;lat&#8217;]]<\/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.thumbnail<\/div>\n<div>String?<\/div>\n<\/div>\n<\/td>\n<td style=\"height: 79px; width: 102.491%; text-align: left;\">Base64 image URL.<\/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.style<\/div>\n<div>Object?<\/div>\n<\/div>\n<\/td>\n<td style=\"height: 79px; width: 102.491%; text-align: left;\">{ version: &lt;&#8220;version number here&#8221;&gt;, sources: {}, layers: []}<\/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><a href=\"https:\/\/www.geobox.ir\/\">Map<\/a>:\u00a0Returns itself to allow for method chaining.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const map = await Server.updateMap('4f9f3e4b-4dc1-469b-83ab-00ae00f02581',{\r\n   'name': 'string',\r\n   'display_name' : 'string',\r\n   'extent': [51, 35, 52, 36],\r\n   'thumbnail': 'string',\r\n   'style': {version: 0, sources: {}, layers: []}\r\n});<\/pre>\n<h3>deleteMap(map_uuid)<\/h3>\n<p>Deletes the existing map. This function is an asynchronous function.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>map_uuid is the available map 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 show 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.deleteMap('4f9f3e4b-4dc1-469b-83ab-00ae00f02581');<\/pre>\n<h3>getMap(map_uuid)<\/h3>\n<p>Returns the desired existing map. This function is an asynchronous function.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>map_uuid is the available map uuid.<\/p>\n<p><strong>Returns:<\/strong><\/p>\n<p><a href=\"https:\/\/www.geobox.ir\/\">Map<\/a>: Returns map object to allow for method chaining.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const map = await Server.getMap('4f9f3e4b-4dc1-469b-83ab-00ae00f02581');<\/pre>\n<h3>getMaps(options)<\/h3>\n<p>Returns the desired existing maps. 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: 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.<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 separated 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 maps.<\/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 maps.<\/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 maps 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 maps 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><a href=\"https:\/\/www.geobox.ir\/\">Map<\/a>: Returns map object to allow for method chaining.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const maps = await Server.getMaps({\r\n   order_by: \"created_at D\",\r\n   user_id: 0,\r\n   search: 'string',\r\n   shared:true,\r\n   limit: 10\r\n});<\/pre>\n<h3>seedCacheMap(map_uuid, options)<\/h3>\n<p>Generates and stores tiles for the desired existing map. See <a href=\"https:\/\/www.geobox.ir\/doc\/v1\/%d9%86%d9%82%d8%b4%d9%87-%d9%87%d8%a7-maps\/%d8%a7%db%8c%d8%ac%d8%a7%d8%af-%d9%88-%d9%85%d8%af%db%8c%d8%b1%db%8c%d8%aa-%d9%86%d9%82%d8%b4%d9%87%d9%87%d8%a7\/#4-toc-title\">generating and storing tiles<\/a> for more guidance.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>map_uuid is the available map 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\">[[&#8216;south west&#8217;][&#8216;lng&#8217;], [&#8216;south west&#8217;][&#8216;lat&#8217;], [&#8216;north east&#8217;][&#8216;lng&#8217;],[&#8216;north east&#8217;][&#8216;lat&#8217;]]<\/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 map 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.scale<\/div>\n<div>\n<div>Number<\/div>\n<div>Default: null<\/div>\n<\/div>\n<\/td>\n<td style=\"height: 26px; width: 102.491%; text-align: left;\">Choices are: 1, 2, or null (null here means both)<\/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.seedCacheMap('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   'scale': 2\r\n})<\/pre>\n<h3>getCacheSizeMap(map_uuid)<\/h3>\n<p>Returns the size of tiles generated and stored for the desired map in bytes.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>map_uuid is the available map 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.getCacheSizeMap('4f9f3e4b-4dc1-469b-83ab-00ae00f02581');<\/pre>\n<h3>clearCacheMap(map_uuid)<\/h3>\n<p>Removes generated tiles for the desired map.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p>map_uuid is the available map 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.clearCacheMap('4f9f3e4b-4dc1-469b-83ab-00ae00f02581');<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Methods: createMap(options) Creates a new map. This function is an asynchronous function. Parameters: options (Object) Name Description options.name String Name of new map. options.display_name String? Display name of new map. This parameter is helpful in identifying maps easily. options.description String? Description of map. options.user_id Number? If the admin wants to create a new map for [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[65],"doc_tag":[],"class_list":["post-6069","docs","type-docs","status-publish","hentry","doc_category-map-geobox-api-for-javascript"],"_links":{"self":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/6069","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=6069"}],"version-history":[{"count":51,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/6069\/revisions"}],"predecessor-version":[{"id":6585,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/6069\/revisions\/6585"}],"wp:attachment":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/media?parent=6069"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/doc_category?post=6069"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/doc_tag?post=6069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}