JMap.Feature.getById
Returns the feature (EPSG:4326 projection) for the given layer and feature id.
the JMap layer id
the JMap feature id
if layer or feature not found
// returns the feature of layer id="3" and feature id="4"JMap.Feature .getById(3, 4) .then(feature => console.info("Feature has been fetched", feature)) .catch(error => console.error("An error occured", error)) Copy
// returns the feature of layer id="3" and feature id="4"JMap.Feature .getById(3, 4) .then(feature => console.info("Feature has been fetched", feature)) .catch(error => console.error("An error occured", error))
JMap.Feature.getById
Returns the feature (EPSG:4326 projection) for the given layer and feature id.