populate layer json with features