View, Layer and Source in OpenLayers-Part 2

OpenLayers icon

For Part-1, Click here

ol.View, ol.layer and ol.source are one of the foundations of OpenLayers application. You can not move ahead without understanding them. Let’s understand them with the help of following code.

ol.View is use to set the view of map.

ol.source is use to store layer data and ol.layer is use to render the layer data on map which it gets from ol.source. Source and Layer are always used together.

GeoSpatial Developer