JMap.Layer.getEPSG4326Extent
Returns the extent of the layer in ESPG:4326 coordinates
The JMap layer id
// returns the bounding box (JBoundaryBox) of the layer ID 3 in decimal degreesconsole.log("WGS84 extent of layer id="3" is: ", JMap.Layer.getEPSG4326Extent(3)) Copy
// returns the bounding box (JBoundaryBox) of the layer ID 3 in decimal degreesconsole.log("WGS84 extent of layer id="3" is: ", JMap.Layer.getEPSG4326Extent(3))
Error if no layer found for the id or if layer is a group
JMap.Layer.getEPSG4326Extent
Returns the extent of the layer in ESPG:4326 coordinates