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 successful or not. Null message means opening popup was successful.
Example:
const allRasterLayers = map.getRasterLayers(); const intendedLayer = allRasterLayers["<intended layer name>"]; intendedLayer.openPopup([53,37]);
removePopup()
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)
Returns:
String: Returns a message that shows flashing feature was successful or not. Null message means flashing was successful.
Example:
const allRasterLayers = map.getRasterLayers(); const intendedLayer = allRasterLayers["<intended layer name>"]; intendedLayer.removePopup();