Retrieve data of a feature (e.g., ID, geometry) from layers in the style by querying for rendered
features at a point, coordinates, or a bounding box within a specified layer in the style.
Sample use case 1: You want to display information if the user clicks the layer that you added.
Sample use case 2: You want to return all visible features in a viewport.
To create a layer and dynamically add it to the style:
Layer layer =LayerFactory.createLayer(layerJson)
tomtomMap.getStyleSettings().addLayer(layer);
val layer = LayerFactory.createLayer(layerJson)
tomtomMap.styleSettings.addLayer(layer)
To query the style for specific layer features at a given screen point, call: