{"id":5941,"date":"2022-12-26T11:23:00","date_gmt":"2022-12-26T07:53:00","guid":{"rendered":"https:\/\/en.geobox.ir\/developers\/?post_type=docs&#038;p=5941"},"modified":"2023-01-21T12:00:51","modified_gmt":"2023-01-21T08:30:51","slug":"get-data-information","status":"publish","type":"docs","link":"https:\/\/en.geobox.ir\/developers\/docs\/working-with-layers\/get-data-information\/","title":{"rendered":"Get feature layers"},"content":{"rendered":"<div>\n<h3>getFeatureLayers()<\/h3>\n<\/div>\n<p>To access the array of all vector layers, use the getFeatureLayers method. The keys of this array are layer names. To use the data manipulation capabilities, you must use the values of this array.<\/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\">Object: Returns feature layers object.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" dir=\"ltr\" style=\"min-height: 40px;\" data-enlighter-language=\"generic\">const featureLayers = map.getFeatureLayers();\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>getFeatureLayers() To access the array of all vector layers, use the getFeatureLayers method. The keys of this array are layer names. To use the data manipulation capabilities, you must use the values of this array. Returns: Object: Returns feature layers object. Example: const featureLayers = map.getFeatureLayers();<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[58],"doc_tag":[],"class_list":["post-5941","docs","type-docs","status-publish","hentry","doc_category-working-with-layers"],"_links":{"self":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/5941","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=5941"}],"version-history":[{"count":11,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/5941\/revisions"}],"predecessor-version":[{"id":6634,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/5941\/revisions\/6634"}],"wp:attachment":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/media?parent=5941"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/doc_category?post=5941"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/doc_tag?post=5941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}