{"id":6539,"date":"2023-01-17T11:38:57","date_gmt":"2023-01-17T08:08:57","guid":{"rendered":"https:\/\/en.geobox.ir\/developers\/?post_type=docs&#038;p=6539"},"modified":"2023-01-21T13:48:59","modified_gmt":"2023-01-21T10:18:59","slug":"working-with-raster-2","status":"publish","type":"docs","link":"https:\/\/en.geobox.ir\/developers\/docs\/rasters\/working-with-raster-2\/","title":{"rendered":"Working with raster"},"content":{"rendered":"<p>Tip: To use all the methods below, you must first select the desired layer through the result array of the map.getRasterLayers ().<\/p>\n<h2>Methods:<\/h2>\n<h3>openPopup(latLngLocation)<\/h3>\n<p>Opens popup to display raster information.<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><span style=\"font-size: 12pt;\">latLngLocation<\/span>(Array): An array contains latitude and longitude. Popup shows raster information in this location.<\/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\">String: Returns a message that shows opening popup was successful or not. Null message means opening popup was successful.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" dir=\"ltr\" style=\"min-height: 40px;\" data-enlighter-language=\"generic\">const allRasterLayers = map.getRasterLayers();\r\nconst intendedLayer = allRasterLayers[\"&lt;intended layer name&gt;\"];\r\nintendedLayer.openPopup([53,37]);\r\n<\/pre>\n<h3>removePopup()<\/h3>\n<p style=\"text-align: justify;\">Closes the existing popup. (Note that only one popup can be opened in the map, and the popup will be closed when a new popup is opened)<\/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\">String: Returns a message that shows flashing feature was successful or not. Null message means flashing was successful.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" dir=\"ltr\" style=\"min-height: 40px;\" data-enlighter-language=\"generic\">const allRasterLayers = map.getRasterLayers();\r\nconst intendedLayer = allRasterLayers[\"&lt;intended layer name&gt;\"];\r\nintendedLayer.removePopup();<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Tip: To use all the methods below, you must first select the desired layer through the result array of the map.getRasterLayers (). Methods: openPopup(latLngLocation) Opens popup to display raster information. Parameters: latLngLocation(Array): An array contains latitude and longitude. Popup shows raster information in this location. Returns: String: Returns a message that shows opening popup was [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[76],"doc_tag":[],"class_list":["post-6539","docs","type-docs","status-publish","hentry","doc_category-rasters"],"_links":{"self":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/6539","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=6539"}],"version-history":[{"count":5,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/6539\/revisions"}],"predecessor-version":[{"id":6646,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/6539\/revisions\/6646"}],"wp:attachment":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/media?parent=6539"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/doc_category?post=6539"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/doc_tag?post=6539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}