Make vector layers dynamic, add examples