Returns the feature (EPSG:4326 projection) for the given layer and feature id.
throws
if layer or feature not found
example
// 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))
Returns the features (EPSG:4326 projection) for the given layer and feature ids.
throws
if layer or any of the features not found
example
// returns the features of layer id="3" and feature id="4", "5" and "6"
JMap.Feature
.getByIds(3, [4, 5, 6])
.then(features =>console.info("Features has been fetched", features))
.catch(error =>console.error("An error occured", error))
JMap.Feature
This is where you can find feature related methods