Adding support for vector layers