Taking coordinates of points in OpenLayers