We get all the messages based on the extent.
ol.source.Vector
This is used to provide a feature source for the layers. In simple terms, it is used to add a marker on the map. It has the following options:
- loader: This is used to load features like from a remote source. In our case, we are fetching from a remote source using AJAX.
- strategy: This is used to set the strategy to load the features. Default uses ol.loadingstrategy.all, which loads all the features at once.
ol.Feature
A vector object representing the geographic features with a geometry and other attribute properties. It usually has a single geometry property, which in our case is used to add a marker to the specified coordinates using ol.geom.Point ...